CVE-2026-12228

MEDIUM
MEDIUM Priority: 0.02 BB Relevance: 51/100
Published: 2026-07-18 Modified: 2026-10-24 First seen: 2026-10-29 Status: active

Attack Surface

Network Low Complexity Scope Change

CVSS Vector Breakdown

AV: Network
AC: Low
PR: Low
UI: Required
S: Changed
C: Low
I: Low
A: None

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.

Weakness Classification (1)

Affected Software (1)

VendorProductVersion
lollms lollms < 2.1.0

References & Advisories (1)

Bug Bounty Relevance

51 / 100
✓ Network accessible
✓ Low complexity

CVSS Score

5.4 / 10.0 v3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

EPSS — Exploitation Probability

0.33%
Raw Score 0.003340
Percentile 26.8%
Date 2026-10-29

EPSS Trend

2026-10-29
0.00334
2026-10-28
0.00334

Intelligence Sources

nvd ref →