Critical severityNVD Advisory· Published Jul 15, 2026· Updated Jul 15, 2026
LightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requests
CVE-2026-61736
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
lightrag-hkuPyPI | < 1.5.4 | 1.5.4 |
Affected products
1Patches
Vulnerability mechanics
References
8- github.com/advisories/GHSA-6x6h-qqr7-855wghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-61736ghsaADVISORY
- github.com/HKUDS/LightRAG/commit/09567a4c983f580050db63569dd477122c058c3dghsax_refsource_MISCWEB
- github.com/HKUDS/LightRAG/commit/df68d75f9dc29dd340ffb6794b48f48c4fdc9a2dghsax_refsource_MISCWEB
- github.com/HKUDS/LightRAG/commit/ebba6548639c0f2e8919100eff76b401f1222252ghsax_refsource_MISCWEB
- github.com/HKUDS/LightRAG/pull/3317ghsax_refsource_MISCWEB
- github.com/HKUDS/LightRAG/releases/tag/v1.5.4ghsax_refsource_MISCWEB
- github.com/HKUDS/LightRAG/security/advisories/GHSA-6x6h-qqr7-855wghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.