lightrag-hku: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content
CVE-2026-86062 · GHSA-xpjq-3w4w-w5wr · published 2026-09-22
- Severity
- Medium
- CVSS score
- 6.1
- Chance of exploitation (EPSS)
- 0.25%
- Fixed in
- 1.5.5
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
Stored (persistent) cross-site scripting. Any user in the default no-auth deployment, or any authenticated low-privilege collaborator when auth is enabled, can plant a document whose content runs arbitrary JavaScript in the browser of every user who later retrieves it. Because LightRAG keeps the auth token in localStorage, the injected script can read it and drive the API as the victim (exfiltrate/modify/delete the knowledge base and graph, upload documents) — i.e. escalate to full account/instance takeover.
Upgrade lightrag-hku to 1.5.5 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| lightrag-hku | PyPI | <= 1.5.4 | 1.5.5 |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalMalicious website can execute commands on the local system through XSS in the OpenCode web UIopencode-ai
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
- Criticallightrag-hku: No Rate Limiting on /login Endpoint Allows Brute-Force Attackslightrag-hku
- CriticalLightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requestslightrag-hku
- CriticalLightRAG is Vulnerable to Authentication Bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY protectionlightrag-hku
- Highlightrag-hku: SSRF via IPv6-transition address bypass (NAT64, IPv4-compatible, 6to4) of the native-markdown image-download guardlightrag-hku
- HighLightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypasslightrag-hku
- Mediumlightrag-hku: Plaintext Passwords Compared Without Constant-Time Functionlightrag-hku
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.