CVE-2026-12228CWE-79cross-site-scripting

CVE-2026-12228

Medium · published July 19, 2026

CVSS v3.1
5.4
EPSS
0%
Percentile
25.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.4 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00334 · 25.6th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-07-19T01:17Z
Affected products (1)
ProductVersionsFixed in
lollms/lollms≤ 2.1.0—
References (2)
EPSS history
Timeline
  • 18 JUL 20:36Z
    Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms
    cvelistv5