Skip to content
MediumVulnerability

GHSA-xpjq-3w4w-w5wr: lightrag-hku: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content

Published
Record updated
View JSON
Affected
  • lightrag-hku <= 1.5.4
Fixed in
1.5.5
  • released July 31, 2026, 53 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

The LightRAG WebUI renders assistant answer content as raw HTML, using react-markdown with rehypeRaw, skipHtml set to false, and no sanitizer or allow-list. Because answers are derived from ingested documents, an attacker who can add one document can store a payload that runs in the browser of any user who later retrieves it, such as an administrator. The source says this can lead to authentication token theft from localStorage and full API takeover, and no authentication is required in the default configuration.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.