CVE-2026-12228: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in parisneo parisneo/lollms
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.
AI Analysis
Technical Summary
The vulnerability exists in the parisneo/lollms application's POST /api/prompts/share endpoint, where the prompt_content field is stored directly into DBDirectMessage.content without proper server-side sanitization. The frontend uses a regex-based sanitizer that is insufficient, and the message content is rendered using v-html, which inserts HTML directly into the DOM. This allows an authenticated attacker to send malicious prompt-share messages that execute arbitrary JavaScript in the context of the victim's browser when they view the direct message thread. The vulnerability enables actions such as executing authenticated requests as the victim, stealing same-origin data, and potentially taking over the victim's account. The CVSS 3.0 score is 8.7 (High), reflecting network attack vector, low attack complexity, required privileges, user interaction, and high impact on confidentiality and integrity.
Potential Impact
An authenticated attacker can exploit this vulnerability to execute arbitrary JavaScript in the context of a victim user’s browser. This can lead to unauthorized actions performed with the victim's privileges, exposure of sensitive application data, and potential account takeover. The vulnerability compromises confidentiality and integrity but does not impact availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when interacting with prompt-share messages from untrusted sources. The vendor has not provided an official fix or temporary mitigation at this time.
CVE-2026-12228: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in parisneo parisneo/lollms
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 v3.0
Score 8.7high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the parisneo/lollms application's POST /api/prompts/share endpoint, where the prompt_content field is stored directly into DBDirectMessage.content without proper server-side sanitization. The frontend uses a regex-based sanitizer that is insufficient, and the message content is rendered using v-html, which inserts HTML directly into the DOM. This allows an authenticated attacker to send malicious prompt-share messages that execute arbitrary JavaScript in the context of the victim's browser when they view the direct message thread. The vulnerability enables actions such as executing authenticated requests as the victim, stealing same-origin data, and potentially taking over the victim's account. The CVSS 3.0 score is 8.7 (High), reflecting network attack vector, low attack complexity, required privileges, user interaction, and high impact on confidentiality and integrity.
Potential Impact
An authenticated attacker can exploit this vulnerability to execute arbitrary JavaScript in the context of a victim user’s browser. This can lead to unauthorized actions performed with the victim's privileges, exposure of sensitive application data, and potential account takeover. The vulnerability compromises confidentiality and integrity but does not impact availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when interacting with prompt-share messages from untrusted sources. The vendor has not provided an official fix or temporary mitigation at this time.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- @huntr_ai
- Date Reserved
- 2026-06-14T20:13:15.214Z
- Cvss Version
- 3.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5be5372a4a8d5989425e96
Added to database: 07/18/2026, 20:42:31 UTC
Last enriched: 07/25/2026, 22:49:30 UTC
Last updated: 08/31/2026, 22:52:08 UTC
Views: 199
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.