{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-12228 exists.","fix":"No fix has been published for CVE-2026-12228 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-12228 is a high-severity cross-site scripting vulnerability in parisneo/lollms, published on 18 Jul 2026. 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-2026-12228 and fix it if it is affected.\n\nWhat it is: CVE-2026-12228 is a high-severity cross-site scripting vulnerability in parisneo/lollms, published on 18 Jul 2026. 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-2026-12228 exists.\n\nAffected product: parisneo/lollms. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2026-12228/ (Markdown: https://insights.sbomify.com/CVE-2026-12228/index.md)","id":"CVE-2026-12228","markdown":"https://insights.sbomify.com/CVE-2026-12228/index.md","name":"CVE-2026-12228","record":{"aliases":["GHSA-vh8r-6pw6-wv4f"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"lollms web application","requires_auth":"low_privilege","summary":"An attacker can inject malicious scripts into direct messages via prompt sharing, leading to arbitrary JavaScript execution and potential account takeover in lollms.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"lollms","vendor":"lollms"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A stored cross-site scripting (XSS) vulnerability exists in the `POST /api/prompts/share` endpoint of parisneo/lollms (latest version). The endpoint stores attacker-controlled `prompt_content` into `DBDirectMessage.content` without server-side sanitization. When a victim opens the direct message (DM) thread, the message is rendered by the DM UI through `MessageContentRenderer`, which uses `v-html` to insert rendered HTML into the DOM. The frontend sanitizer, which is regex-based, fails to comprehensively sanitize attacker-controlled HTML, allowing malicious payloads to execute in the victim's browser context. This vulnerability enables any authenticated user to send a malicious prompt-share message to another user's inbox, leading to arbitrary JavaScript execution, authenticated actions as the victim, exposure of same-origin application data, and potential account takeover.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms","id":"CVE-2026-12228","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"LearnPress \u003c= 4.3.9.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'layout_custom_css'","id":"CVE-2026-12230"},"packages":[],"prev":{"headline":"Visual Composer Website Builder \u003c= 45.16.0 - Unauthenticated Local File Inclusion via 'vcv-template' Parameter","id":"CVE-2026-12227"},"products":["parisneo/lollms"],"published":"2026-07-18","related":[{"cvss_score":9.8,"headline":"Improper Access Control via Weak JWT Token in parisneo/lollms","id":"CVE-2026-1114","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Path Traversal in parisneo/lollms","id":"CVE-2024-3429","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":9.6,"headline":"Stored XSS in parisneo/lollms","id":"CVE-2026-1115","kev_date_added":null,"published":"2026-04-10"},{"cvss_score":8.3,"headline":"Insecure Direct Object Reference (IDOR) in parisneo/lollms","id":"CVE-2026-0562","kev_date_added":null,"published":"2026-03-29"},{"cvss_score":8.2,"headline":"Cross-site Scripting (XSS) in parisneo/lollms","id":"CVE-2026-1116","kev_date_added":null,"published":"2026-04-12"},{"cvss_score":7.6,"headline":"CSRF Vulnerability in parisneo/lollms XTTS Server","id":"CVE-2024-4499","kev_date_added":null,"published":"2024-06-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"total"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["parisneo"]},"summary":"An attacker can inject malicious scripts into direct messages via prompt sharing, leading to arbitrary JavaScript execution and potential account takeover in lollms.","url":"https://insights.sbomify.com/CVE-2026-12228/"}