Description
LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.4, the server defaults to CORS_ORIGINS=* combined with allow_credentials=True in lightrag/api/lightrag_server.py, causing Starlette CORSMiddleware to effectively whitelist every origin for credentialed cross-origin requests. Any malicious website visited by an authenticated LightRAG user can silently make authenticated API requests, exfiltrating documents and knowledge graph data or performing destructive actions such as deleting the document store. This vulnerability is fixed in 1.5.4.
Severity (CVSS)
| Base score | 9.3 |
|---|---|
| Severity | Critical |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N |
| Provided by | CNA |
Weaknesses
- CWE-942 — CWE-942: Permissive Cross-domain Policy with Untrusted Domains
Affected products
| Vendor | Product | Versions |
|---|---|---|
| HKUDS | LightRAG | < 1.5.4 |
References
- https://github.com/HKUDS/LightRAG/security/advisories/GHSA-6x6h-qqr7-855w (x_refsource_CONFIRM)
- https://github.com/HKUDS/LightRAG/pull/3317 (x_refsource_MISC)
- https://github.com/HKUDS/LightRAG/commit/09567a4c983f580050db63569dd477122c058c3d (x_refsource_MISC)
- https://github.com/HKUDS/LightRAG/commit/df68d75f9dc29dd340ffb6794b48f48c4fdc9a2d (x_refsource_MISC)
- https://github.com/HKUDS/LightRAG/commit/ebba6548639c0f2e8919100eff76b401f1222252 (x_refsource_MISC)
- https://github.com/HKUDS/LightRAG/releases/tag/v1.5.4 (x_refsource_MISC)
Generated from the official CVE List on 16 Jul 2026 07:01 UTC.