# CVE-2026-86062: LightRAG: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-22T16:21:43.846Z
- Modified: 2026-10-01T17:55:54.289Z
- Also known as: GHSA-xpjq-3w4w-w5wr, PYSEC-2026-4065
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- HKUDS LightRAG: < 1.5.5
- lightrag-hku (PyPI): before 1.5.5

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/HKUDS/LightRAG/security/advisories/GHSA-xpjq-3w4w-w5wr> (exploit, web)
- <https://github.com/HKUDS/LightRAG/pull/3437> (web)
- <https://github.com/HKUDS/LightRAG/commit/8bf032a5200f293b482dd945d436e25cd08bd953> (web)
- <https://github.com/HKUDS/LightRAG/releases/tag/v1.5.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-86062> (advisory)
- <https://github.com/HKUDS/LightRAG> (package)
- <https://pypi.org/project/lightrag-hku> (package)
- <https://github.com/advisories/GHSA-xpjq-3w4w-w5wr> (advisory)

## Sources

- CVE List: [CVE-2026-86062](https://www.cve.org/CVERecord?id=CVE-2026-86062), CVE Terms of Use, modified 2026-09-22
- GitHub Advisory Database: [GHSA-xpjq-3w4w-w5wr](https://github.com/advisories/GHSA-xpjq-3w4w-w5wr), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-86062](https://nvd.nist.gov/vuln/detail/CVE-2026-86062), Public domain, modified 2026-09-22
- PyPA Advisory Database: [PYSEC-2026-4065](https://osv.dev/vulnerability/PYSEC-2026-4065), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-86062 · Whole record: https://cve.day/CVE-2026-86062.json · Rebuilt by cve.day 2026-11-25T22:59:40.482Z
