MediumVulnerability
CVE-2026-12228: parisneo/lollms stored XSS through POST /api/prompts/share endpoint
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-12228
- Published
- Record updated
Summary
CVE-2026-12228 is a stored cross-site scripting flaw in the `POST /api/prompts/share` endpoint of parisneo/lollms (latest version). The endpoint saves attacker-controlled `prompt_content` into `DBDirectMessage.content` without server-side sanitization, and the DM UI renders it through `v-html` in `MessageContentRenderer`, where a regex-based frontend sanitizer fails to fully neutralize HTML. Any authenticated user can send such a message to another user's inbox, enabling arbitrary JavaScript execution, actions as the victim, exposure of same-origin application data, and potential account takeover.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online