CVE-2026-86062 Details
Description
LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.5, lightrag_webui/src/components/retrieval/ChatMessage.tsx renders answer and thinking content with react-markdown, rehypeRaw, and skipHtml=false without an HTML sanitizer. An attacker who can add a document can store raw HTML that is returned through the query path and rendered as active content by MessageMarkdown. A user who later retrieves the content can execute attacker-controlled JavaScript through elements such as an iframe srcdoc; the additional Mermaid securityLevel: loose rendering path also injects generated SVG through innerHTML. The script runs in the LightRAG WebUI origin and can read the API token in localStorage and perform API actions as the victim. This issue is fixed in version 1.5.5.
A stored cross-site scripting vulnerability has been identified in LightRAG versions prior to 1.5.5. The issue arises because the WebUI chat component renders messages as raw HTML without proper sanitization. This flaw allows an attacker to inject JavaScript into documents, which is then executed in the browser of users who retrieve those documents. The vulnerability is particularly concerning as it can lead to unauthorized access to the user's API token, stored in localStorage, and allow for actions to be performed on their behalf via the API.
Users can update to LightRAG version 1.5.5 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 22, 2026CISA-ADP
Assessed Sep 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/HKUDS/LightRAG/security/advisories/GHSA-xpjq-3w4w-w5wr | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/HKUDS/LightRAG/commit/8bf032a5200f293b482dd945d436e25cd08bd953 | [email protected] | Source CodeVendor |
| https://github.com/HKUDS/LightRAG/pull/3437 | [email protected] | Issue TrackingVendor |
| https://github.com/HKUDS/LightRAG/releases/tag/v1.5.5 | [email protected] | Release NotesVendor |
| https://github.com/HKUDS/LightRAG/security/advisories/GHSA-xpjq-3w4w-w5wr | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| LightRAG | <= 1.5.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 22, 2026 | CVE Modified | CISA-ADP |
| Sep 22, 2026 | New CVE Received | [email protected] |
Volerion