CVE Catalog

CVE-2026-86062

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Summary

LightRAG prior to 1.5.5 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, enabling arbitrary JavaScript execution via elements such as iframe srcdoc. The script runs in the LightRAG WebUI origin and can read the API token from localStorage and perform API actions as the victim.

Risk Assessment

An attacker can execute arbitrary JavaScript in the victim's browser, steal the API token, and perform unauthorized operations. This leads to session hijacking and potential data access.

Recommendation

Update LightRAG to version 1.5.5 or later. Until then, avoid adding untrusted documents and consider disabling raw HTML rendering.

Other vulnerabilities in LightRAG

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS