CVE-2026-12228
JSON

8.7high

Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms

Severity
8.7high CVSS:3.0 by @huntr_ai
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
parisneo parisneo/lollmsfrom unspecified up to latestCVE List
lollms lollmsup to 2.1.0NVD

All scores

@huntr_ai8.7high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad de cross-site scripting (XSS) almacenado existe en el endpoint ’POST /api/prompts/share’ de parisneo/lollms (última versión). El endpoint almacena ’prompt_content’ controlado por el atacante en ’DBDirectMessage.content’ sin sanitización del lado del servidor. Cuando una víctima abre el hilo del mensaje directo (DM), el mensaje es renderizado por la UI del DM a través de ’MessageContentRenderer’, que usa ’v-html’ para insertar HTML renderizado en el DOM. El sanitizador de frontend, que está basado en expresiones regulares, falla en sanitizar de manera exhaustiva el HTML controlado por el atacante, permitiendo que cargas útiles maliciosas se ejecuten en el contexto del navegador de la víctima. Esta vulnerabilidad permite a cualquier usuario autenticado enviar un mensaje malicioso de compartir prompt a la bandeja de entrada de otro usuario, lo que lleva a la ejecución arbitraria de JavaScript, acciones autenticadas como la víctima, exposición de datos de aplicación del mismo origen y potencial toma de control de la cuenta.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-12228 changed 2026-07-20CVE Terms of Use
NVDCVE-2026-12228 changed 2026-10-24Public domain