VDB
Sign up
CRITICAL9.0

PYSEC-2024-116

Quick fix

PYSEC-2024-116 — lollms: upgrade to the fixed version with the command below.

pip install --upgrade 'lollms>=328b960a0de2097e13654ac752253e9541521ddd'

Details

A vulnerability in the discussion image upload function of the Lollms application, version v9.9, allows for the uploading of SVG files. Due to incomplete filtering in the sanitize_svg function, this can lead to cross-site scripting (XSS) vulnerabilities, which in turn pose a risk of remote code execution. The sanitize_svg function only removes script elements and 'on*' event attributes, but does not account for other potential vectors for XSS within SVG files. This vulnerability can be exploited when authorized users access a malicious URL containing the crafted SVG file.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/lollms
Introduced in: 0Fixed in: 328b960a0de2097e13654ac752253e9541521ddd
Fixpip install --upgrade 'lollms>=328b960a0de2097e13654ac752253e9541521ddd'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/lollms"]}'