{"answers":{"affected":"3 open source packages ship an affected version, including lollms. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6581 exists.","fix":"No fix has been published for CVE-2024-6581 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-6581 is a medium-severity cross-site scripting vulnerability in parisneo/lollms, published on 29 Oct 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-6581 and fix it if it is affected.\n\nWhat it is: CVE-2024-6581 is a medium-severity cross-site scripting vulnerability in parisneo/lollms, published on 29 Oct 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6581 exists.\n\nAffected packages and fixed versions:\n- lollms (PyPI): affected all versions; no fix listed\n- lollms (PyPI): affected all versions up to 9.5.1; no fix listed\n- lollms (PyPI): affected all versions up to 9.5.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6581/ (Markdown: https://insights.sbomify.com/CVE-2024-6581/index.md)","id":"CVE-2024-6581","markdown":"https://insights.sbomify.com/CVE-2024-6581/index.md","name":"CVE-2024-6581","record":{"aliases":["GHSA-cm59-8rmv-f2cj","PYSEC-2024-116"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Lollms application","requires_auth":"low_privilege","summary":"Attackers can achieve remote code execution via stored XSS in the image upload function due to incomplete SVG sanitization.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"lord_of_large_language_models","vendor":"lollms"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Remote Code Execution due to Stored XSS in parisneo/lollms","id":"CVE-2024-6581","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Broken Access Control in lunary-ai/lunary","id":"CVE-2024-6582"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":[],"package":"lollms","purl":"pkg:pypi/lollms","source":"PYSEC-2024-116"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["9.5.1"],"package":"lollms","purl":null,"source":"GHSA-cm59-8rmv-f2cj"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["9.5.1"],"package":"lollms","purl":"pkg:pypi/lollms","source":"GHSA-cm59-8rmv-f2cj"}],"prev":{"headline":"/n software IPWorks SSH insufficient file access verification","id":"CVE-2024-6580"},"products":["parisneo/lollms"],"published":"2024-10-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-29","vendors":["parisneo"]},"summary":"Attackers can achieve remote code execution via stored XSS in the image upload function due to incomplete SVG sanitization.","url":"https://insights.sbomify.com/CVE-2024-6581/"}