Medium severity · published Jul 18, 2026
CVE-2026-12228
Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms
5.4
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 27% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PA
parisneo/lollms · parisneo
through latest · source: vendor
LO
Lollms · Lollms
through 2.1.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-12228
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-12228
Exploit
https://huntr.com/bounties/25623635-5ceb-4062-8289-02089e6d97c1
More from parisneo/lollms
9.8
CVE-2026-1114
Improper Access Control via Weak JWT Token in parisneo/lollms
9.8
CVE-2026-0558
Unauthenticated File Upload in parisneo/lollms
9.6
CVE-2026-1115
Stored XSS in parisneo/lollms
8.3
CVE-2026-0562
Insecure Direct Object Reference (IDOR) in parisneo/lollms
8.2
CVE-2026-1117
Improper Access Control in parisneo/lollms
