GHSA-xpjq-3w4w-w5wr: lightrag-hku: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content
Summary
LightRAG WebUI has a stored cross-site scripting (XSS) vulnerability where it renders chat answers as raw HTML without sanitization, allowing an attacker to inject malicious JavaScript through uploaded documents that executes when other users view the response. Because answer content comes from user-uploaded files and is rendered with `rehypeRaw` plugin enabled and no HTML sanitizer, an attacker can steal authentication tokens and take over the API.
Solution / Mitigation
The source text does not explicitly describe a fix, patch, or version update. It recommends adding `rehype-sanitize` with an allow-list and a custom `urlTransform`, disabling mermaid's `securityLevel: 'loose'` setting, and setting KaTeX's `trust: false`, but these are suggestions rather than confirmed mitigations in the source. N/A -- no explicit mitigation or patched version is mentioned in source.
Vulnerability Details
EPSS: 0.0%
Yes
September 22, 2026
Classification
Taxonomy References
Affected Vendors
Affected Packages
Related Issues
CVE-2026-34371: LibreChat is a ChatGPT clone with additional features. Prior to 0.8.4, LibreChat trusts the name field returned by the e
CVE-2024-27444: langchain_experimental (aka LangChain Experimental) in LangChain before 0.1.8 allows an attacker to bypass the CVE-2023-
Original source: https://github.com/advisories/GHSA-xpjq-3w4w-w5wr
First tracked: September 22, 2026 at 08:01 PM
Classified by LLM (prompt v3) · confidence: 92%