CVE-2026-61736: CWE-942: Permissive Cross-domain Policy with Untrusted Domains in HKUDS LightRAG
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.
AI Analysis
Technical Summary
CVE-2026-61736 is a critical vulnerability in HKUDS LightRAG where, before version 1.5.4, the server defaults to CORS_ORIGINS=* combined with allow_credentials=True in the lightrag/api/lightrag_server.py file. This configuration causes the Starlette CORSMiddleware to whitelist all origins for credentialed cross-origin requests, effectively allowing any website visited by an authenticated user to silently make authenticated API requests. Exploitation can lead to exfiltration of sensitive documents and knowledge graph data or destructive actions such as deleting the document store. The issue is addressed in LightRAG version 1.5.4.
Potential Impact
An attacker controlling a malicious website can exploit this vulnerability by tricking an authenticated LightRAG user into visiting the site, enabling the attacker to perform unauthorized API requests with the user's credentials. This can result in high confidentiality and integrity impact, including data theft and deletion of critical data stores. Availability impact is not indicated.
Mitigation Recommendations
Upgrade LightRAG to version 1.5.4 or later, where the default CORS configuration is corrected to prevent credentialed cross-origin requests from all origins. Since no official patch link or advisory is provided, verify the upgrade path with the vendor or official repositories. Until upgraded, restrict CORS_ORIGINS to trusted domains and avoid allowing credentials with wildcard origins.
CVE-2026-61736: CWE-942: Permissive Cross-domain Policy with Untrusted Domains in HKUDS LightRAG
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.
CVSS v3.1
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-61736 is a critical vulnerability in HKUDS LightRAG where, before version 1.5.4, the server defaults to CORS_ORIGINS=* combined with allow_credentials=True in the lightrag/api/lightrag_server.py file. This configuration causes the Starlette CORSMiddleware to whitelist all origins for credentialed cross-origin requests, effectively allowing any website visited by an authenticated user to silently make authenticated API requests. Exploitation can lead to exfiltration of sensitive documents and knowledge graph data or destructive actions such as deleting the document store. The issue is addressed in LightRAG version 1.5.4.
Potential Impact
An attacker controlling a malicious website can exploit this vulnerability by tricking an authenticated LightRAG user into visiting the site, enabling the attacker to perform unauthorized API requests with the user's credentials. This can result in high confidentiality and integrity impact, including data theft and deletion of critical data stores. Availability impact is not indicated.
Mitigation Recommendations
Upgrade LightRAG to version 1.5.4 or later, where the default CORS configuration is corrected to prevent credentialed cross-origin requests from all origins. Since no official patch link or advisory is provided, verify the upgrade path with the vendor or official repositories. Until upgraded, restrict CORS_ORIGINS to trusted domains and avoid allowing credentials with wildcard origins.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T18:59:00.047Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a579dd068715ace43e954cf
Added to database: 07/15/2026, 14:48:48 UTC
Last enriched: 07/15/2026, 15:03:22 UTC
Last updated: 07/15/2026, 15:33:18 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.