CVE-2026-12228: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in parisneo parisneo/lollms
CVE-2026-12228 is a stored cross-site scripting (XSS) vulnerability in the parisneo/lollms product affecting the POST /api/prompts/share endpoint. The vulnerability arises because attacker-controlled input is stored without server-side sanitization and later rendered unsafely in the victim's browser using a frontend sanitizer that is insufficient. This allows authenticated users to send malicious messages that execute arbitrary JavaScript in the context of the victim's browser, potentially leading to account takeover and data exposure.
AI Analysis
Technical Summary
The vulnerability exists in the POST /api/prompts/share endpoint of parisneo/lollms, where the prompt_content parameter is stored directly into DBDirectMessage.content without proper server-side sanitization. When a victim views the direct message thread, the content is rendered using MessageContentRenderer with v-html, which inserts HTML directly into the DOM. The frontend uses a regex-based sanitizer that fails to fully neutralize malicious HTML, enabling stored XSS attacks. This allows any authenticated user to send a crafted prompt-share message that executes arbitrary JavaScript in the victim's browser, leading to authenticated actions, data exposure, and potential account takeover. The CVSS 3.0 score is 8.7 (High) with network attack vector, low attack complexity, required privileges, user interaction, and impacts on confidentiality and integrity with scope changed.
Potential Impact
Successful exploitation allows an authenticated attacker to execute arbitrary JavaScript in the context of the victim's browser when they open the malicious direct message. This can lead to unauthorized actions performed as the victim, exposure of sensitive application data within the same origin, and potentially full account takeover. The vulnerability compromises confidentiality and integrity but does not affect 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 shared prompts from other users. Because the vulnerability requires authenticated access and user interaction, limiting exposure by restricting message sharing or applying additional input sanitization server-side may reduce risk. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-12228: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in parisneo parisneo/lollms
Description
CVE-2026-12228 is a stored cross-site scripting (XSS) vulnerability in the parisneo/lollms product affecting the POST /api/prompts/share endpoint. The vulnerability arises because attacker-controlled input is stored without server-side sanitization and later rendered unsafely in the victim's browser using a frontend sanitizer that is insufficient. This allows authenticated users to send malicious messages that execute arbitrary JavaScript in the context of the victim's browser, potentially leading to account takeover and data exposure.
CVSS v3.0
Score 8.7high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the POST /api/prompts/share endpoint of parisneo/lollms, where the prompt_content parameter is stored directly into DBDirectMessage.content without proper server-side sanitization. When a victim views the direct message thread, the content is rendered using MessageContentRenderer with v-html, which inserts HTML directly into the DOM. The frontend uses a regex-based sanitizer that fails to fully neutralize malicious HTML, enabling stored XSS attacks. This allows any authenticated user to send a crafted prompt-share message that executes arbitrary JavaScript in the victim's browser, leading to authenticated actions, data exposure, and potential account takeover. The CVSS 3.0 score is 8.7 (High) with network attack vector, low attack complexity, required privileges, user interaction, and impacts on confidentiality and integrity with scope changed.
Potential Impact
Successful exploitation allows an authenticated attacker to execute arbitrary JavaScript in the context of the victim's browser when they open the malicious direct message. This can lead to unauthorized actions performed as the victim, exposure of sensitive application data within the same origin, and potentially full account takeover. The vulnerability compromises confidentiality and integrity but does not affect 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 shared prompts from other users. Because the vulnerability requires authenticated access and user interaction, limiting exposure by restricting message sharing or applying additional input sanitization server-side may reduce risk. Monitor vendor channels for updates and apply patches promptly once released.
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/18/2026, 20:56:39 UTC
Last updated: 07/19/2026, 01:26:58 UTC
Views: 29
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.