# CVE-2026-12228: Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms

- Severity: High 8.7 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-18T20:36:36.906Z
- Modified: 2026-10-24T20:10:00.137Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- parisneo parisneo/lollms: from unspecified up to latest
- lollms lollms: up to 2.1.0

## Every score

- @huntr_ai: CVSS:3.0 8.7 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/25623635-5ceb-4062-8289-02089e6d97c1> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2026-12228](https://www.cve.org/CVERecord?id=CVE-2026-12228), CVE Terms of Use, modified 2026-07-20
- NVD: [CVE-2026-12228](https://nvd.nist.gov/vuln/detail/CVE-2026-12228), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-12228 · Whole record: https://cve.day/CVE-2026-12228.json · Rebuilt by cve.day 2026-11-25T22:59:28.636Z
