CVE-2026-86062 json
LightRAG: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content
published 2026-09-22 48 d ago modified 2026-10-01 39 d ago also EUVD-2026-84550 , GHSA-xpjq-3w4w-w5wr , PYSEC-2026-4065
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 27%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi lightrag-hku 1.5.5
- hkuds lightrag 1.5.5
- github.com/HKUDS/LightRAG@8bf032a commit
- github.com/HKUDS/LightRAG#3437 pull request
- github.com/HKUDS/LightRAG/releases/tag/v1.5.5 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 47 d ago
Exploit prediction
0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/HKUDS/LightRAG/security/advisories/GHSA-xpjq-3w4w-w5wr referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | lightrag-hku | <1.5.5 |
1.5.5 |
Affected products
- HKUDS LightRAG
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/HKUDS/LightRAG/pull/3437
web
-
github.com
/HKUDS/LightRAG/commit/8bf032a5200f293b482dd945d436e25cd08bd953
web
-
github.com
/HKUDS/LightRAG/security/advisories/GHSA-xpjq-3w4w-w5wr
exploit, web
-
github.com
/HKUDS/LightRAG/releases/tag/v1.5.5
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-86062
advisory
-
github.com
/HKUDS/LightRAG
package
-
pypi.org
/project/lightrag-hku
package
-
github.com
/advisories/GHSA-xpjq-3w4w-w5wr
advisory
Sources
- CVE List CVE-2026-86062
- GitHub Advisory GHSA-xpjq-3w4w-w5wr
- NVD CVE-2026-86062
- OSV PYSEC-2026-4065
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.