{"cve":"CVE-2026-86062","nvd":{"published":"2026-09-22T17:17:27.863","modified":"2026-09-22T19:16:54.870","status":"Deferred","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/HKUDS/LightRAG/commit/8bf032a5200f293b482dd945d436e25cd08bd953","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"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:56:02.509636177+00:00"},"epss":{"cve":"CVE-2026-86062","score":0.00338,"percentile":0.27241,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-xpjq-3w4w-w5wr","url":"https://osv.dev/vulnerability/GHSA-xpjq-3w4w-w5wr","summary":"lightrag-hku: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content","modified":"2026-10-01T17:55:54.289118912Z","packages":[{"ecosystem":"PyPI","name":"lightrag-hku","purl":"pkg:pypi/lightrag-hku","ranges":["<1.5.5"],"fixed":["1.5.5"]}]},{"id":"PYSEC-2026-4065","url":"https://osv.dev/vulnerability/PYSEC-2026-4065","summary":"lightrag-hku: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content","modified":"2026-10-01T17:45:04.640690868Z","packages":[{"ecosystem":"PyPI","name":"lightrag-hku","purl":"pkg:pypi/lightrag-hku","ranges":["<1.5.5"],"fixed":["1.5.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}