LoLLMs CVE-2026-12228
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid LoLLMs account
-
DeliveryCraft XSS-laced prompt_content bypassing regex sanitizer
-
ExploitPOST /api/prompts/share to victim inbox
-
ExecutionVictim opens DM thread
-
Persistv-html renders payload, JS executes in session
-
ImpactPerform authenticated actions and exfiltrate same-origin data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated LoLLMs account (PR:L) to submit the payload via POST /api/prompts/share, and requires the victim to actively open the received direct-message/prompt-share thread (UI:R) so that MessageContentRenderer renders it through v-html. The specific enabling feature is the prompt-sharing-to-DM workflow that writes unsanitized prompt_content into DBDirectMessage.content; deployments where the share/DM feature is disabled or where only a single trusted user exists are not practically exploitable. Limiting factors: attacker must already have valid credentials, the target must interact with the malicious message, and impact is confined to the victim's browser/session (no availability impact, A:N). |
| Impact | The provided CVSS 3.0 base score is 8.7 (High) with vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N, meaning network-reachable, low complexity, low privileges (any authenticated account), but requiring victim interaction (opening the DM) and crossing a security scope (code runs in the victim's authenticated session). The high score is driven largely by the scope change and dual C:H/I:H impact. Tempering that: exploitation is gated by two real conditions - the attacker must already hold a valid account, and the victim must open the malicious DM thread - so this is not wormable, drive-by, or unauthenticated RCE. No EPSS score was supplied and there is no KEV listing, so there is no evidence of active or widespread exploitation; the huntr bounty is the sole source. Net: a genuine and easily reproducible XSS worth prompt remediation on any multi-user LoLLMs deployment, but its real-world urgency is bounded by the authentication and user-interaction prerequisites and by LoLLMs' relatively niche footprint rather than being an internet-scale emergency. |
| Exploit ScenarioDerived | An attacker with any valid LoLLMs account calls POST /api/prompts/share with a prompt_content field containing an HTML/JS payload crafted to evade the regex sanitizer, sending the malicious prompt-share message to a target user's inbox. When the victim opens the DM thread, MessageContentRenderer inserts the payload via v-html and the script runs in the victim's authenticated session, letting the attacker perform actions as the victim, exfiltrate same-origin data, or hijack the account. The huntr bounty report documents the reproduction path, though no standalone public exploit tool is confirmed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 18, 2026
Stored cross-site scripting in parisneo/lollms (latest) lets any authenticated user weaponize the POST /api/prompts/share endpoint to plant JavaScript in another user's direct-message inbox. The unsanitized prompt_content is persisted to DBDirectMessage.content and later rendered via v-html by MessageContentRenderer, so when the victim opens the DM thread the payload executes in their browser context, enabling actions-as-victim, same-origin data theft, and potential account takeover. No public exploit identified at time of analysis and no EPSS/KEV signal is provided, but the reproduction path is well-documented in the huntr bounty report.
RemediationAI
No vendor-released patch identified at time of analysis, so the primary mitigation is to fix the code: enforce server-side sanitization/output-encoding of prompt_content before it is stored in DBDirectMessage.content, and replace the regex-based client sanitizer with a vetted DOM-based sanitizer such as DOMPurify applied to any content rendered through v-html in MessageContentRenderer (or avoid v-html entirely and render as text). As compensating controls until a fix ships, operators can restrict LoLLMs to trusted users only and disable or gate the prompt-share/DM feature if configurable (trade-off: removes legitimate sharing collaboration), and can deploy a strict Content-Security-Policy that forbids inline script execution (script-src without 'unsafe-inline') to blunt injected payloads (trade-off: may break UI features relying on inline scripts and requires testing). Monitor https://huntr.com/bounties/25623635-5ceb-4062-8289-02089e6d97c1 and the parisneo/lollms repository for the patched release and upgrade as soon as it is available.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is LoLLMs (Lord of Large Language Models), a self-hosted web UI/orchestration platform for running local and remote LLMs. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the server stores attacker-supplied prompt_content verbatim in DBDirectMessage.content with no server-side output encoding or sanitization, and the Vue frontend then injects the message body into the DOM using v-html - a sink that renders raw HTML/script. The only defense is a client-side regex-based sanitizer, which is fundamentally unreliable against HTML because regex cannot correctly model nested/malformed markup, event-handler attributes, or encoding tricks, so crafted payloads bypass it. The CPE cpe:2.3:a:parisneo:parisneo/lollms:*:*:*:*:*:*:*:* indicates all versions up to and including the latest are in scope.
Know when Parisneo Lollms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Network-reachable stored XSS needs an authenticated sender (PR:L) and victim interaction opening the DM (UI:R); payload runs in the victim's session, changing scope (S:C) with high confidentiality/integrity impact and no availability effect.
Primary rating from Vendor (huntr_ai).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
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.
Executive ViewAI
A stored cross-site scripting vulnerability in parisneo/lollms permits authenticated users to inject malicious scripts into other users' direct messages, enabling browser-based account compromise and unauthorized data access. All active messaging users are exposed to exploitation by insiders or compromised accounts.
Disable v-html rendering in MessageContentRenderer and use v-text for user-supplied content; implement strict input validation and sanitization on the prompt_content parameter; deploy Web Application Firewall rules to detect and block JavaScript injection patterns; enforce Content Security Policy headers to disable inline script execution; restrict network access to the /api/prompts/share endpoint; monitor message database and activity logs for injection indicators; train users to report suspicious direct message content.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)NVD
More in Parisneo Lollms
View allStored cross-site scripting in parisneo/lollms versions prior to 2.2.0 enables unauthenticated attackers to inject malic
Weak JWT secret key in LoLLMs 2.1.0 enables offline brute-force recovery, allowing remote unauthenticated attackers to f
Path traversal in parisneo/lollms 2.1.0 exposes arbitrary server files to unauthenticated remote attackers via the SPA c
Cross-site scripting in parisneo/lollms prior to version 2.2.0 allows unauthenticated remote attackers to execute arbitr
Insufficient session expiration in parisneo/lollms allows authenticated attackers with high privileges to maintain unaut
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB