Skip to main content

LoLLMs CVE-2026-12228

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-18 @huntr_ai
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid LoLLMs account
  2. Delivery
    Craft XSS-laced prompt_content bypassing regex sanitizer
  3. Exploit
    POST /api/prompts/share to victim inbox
  4. Execution
    Victim opens DM thread
  5. Persist
    v-html renders payload, JS executes in session
  6. Impact
    Perform 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (huntr_ai) PRIMARY HIGH
NVD 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 8.7 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (huntr_ai).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
Severity Changed
Aug 19, 2026 - 19:37 NVD
HIGH MEDIUM
CVSS changed
Aug 19, 2026 - 19:37 NVD
8.7 (HIGH) 5.4 (MEDIUM)
CVE Published
Jul 18, 2026 - 20:36 cve.org
HIGH 8.7

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Low
niche self-hosted open-source LLM UI, limited enterprise footprint
Social Media
5
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:parisneo:parisneo/lollms:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy