# CVE-2024-6581: Lollms vulnerable to Cross-site Scripting

Source: https://junglewise.ai/threats/cve-2024-6581-lollms-vulnerable-to-cross-site-scripting  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-10-29  
License: CC BY 4.0 with a link back

CVE-2024-6581 · Severity: low · CVSS 3.1 · Published 2024-10-29

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.

Technologies: [lollms (PyPI)](https://junglewise.ai/threats/technologies/pypi-lollms). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-6581 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-6581 being exploited in the wild.

**How severe is CVE-2024-6581?** Low severity, with a CVSS score of 3.1, published 29 October 2024.

**Which products and versions are affected?** lollms (PyPI) ECOSYSTEM:introduced=0,last_affected=9.5.1, GIT:introduced=0,fixed=328b960a0de2097e13654ac752253e9541521ddd|ECOSYSTEM:introduced=0.

**Is there a fix for CVE-2024-6581?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2024-6581?** Check whether you run lollms (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- lollms (PyPI) ECOSYSTEM:introduced=0,last_affected=9.5.1, GIT:introduced=0,fixed=328b960a0de2097e13654ac752253e9541521ddd|ECOSYSTEM:introduced=0

## Identifiers

- CVE-2024-6581
- GHSA-cm59-8rmv-f2cj
- PYSEC-2024-116

## Related threats

- [PYSEC-2026-1586 - Lollms has an Improper Access Control vulnerability](https://junglewise.ai/threats/cve-2026-1117-lollms-has-an-improper-access-control-vulnerability)
- [PYSEC-2026-1590 - Lord of Large Language Models vulnerable to Observable Discrepancy attack via authenticate_user function](https://junglewise.ai/threats/cve-2025-6386-lord-of-large-language-models-vulnerable-to-observable-discrepancy)
- [PYSEC-2026-1591 - LoLLMS Code Injection vulnerability](https://junglewise.ai/threats/cve-2024-6982-lollms-code-injection-vulnerability)
- [PYSEC-2026-1585 - Lord of Large Language Models (LoLLMs) Server path traversal vulnerability in lollms_file_system.py](https://junglewise.ai/threats/cve-2024-6971-lord-of-large-language-models-lollms-server-path-traversal)
- [PYSEC-2026-1587 - LoLLMS vulnerable to Expected Behavior Violation](https://junglewise.ai/threats/cve-2024-6281-lollms-vulnerable-to-expected-behavior-violation)
