Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/HKUDS/LightRAG/commit/8bf032a5200f293b482dd945d436e25cd08bd95
- https://github.com/HKUDS/LightRAG/pull/3437
- https://github.com/HKUDS/LightRAG/releases/tag/v1.5.5
- https://github.com/HKUDS/LightRAG/security/advisories/GHSA-xpjq-3w4w-w5wr
- https://github.com/HKUDS/LightRAG/security/advisories/GHSA-xpjq-3w4w-w5wr
FAQ
What is CVE-2026-86062?
CVE-2026-86062 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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, rehyp...
How severe is CVE-2026-86062?
CVE-2026-86062 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-86062?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.