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.
Published: 2026-07-15
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

LightRAG servers, before version 1.5.4, set the CORS_ORIGINS value to a wildcard and enabled allow_credentials=True. This configuration instructs Starlette's CORSMiddleware to accept authenticated cross‑origin requests from any origin. Consequently, a malicious website visited by an authenticated LightRAG user can silently issue API calls that carry the user’s credentials, allowing the attacker to read documents, download knowledge‑graph data, or perform destructive actions such as deleting the document store. The vulnerability is an example of improper access control in a cross‑origin context, mapped to CWE‑942.

Affected Systems

The affected product is LightRAG from HKUDS. All releases prior to 1.5.4 are vulnerable; the issue was addressed in the 1.5.4 release. No specific downstream product or platform is listed, so any deployment of the vulnerable LightRAG version is susceptible.

Risk and Exploitability

The CVSS score of 9.3 indicates a high‑impact vulnerability. Although the EPSS score is below 1 %, indicating a relatively low probability of exploitation at the time of analysis, the risk remains significant because the attack vector—any website the user visits—can be easily controlled by attackers. The vulnerability is not listed in CISA’s KEV catalog. An attacker would need a user who is authenticated to the LightRAG instance; once that condition is met, the attacker can make credentialed requests purely through normal browser navigation to a malicious origin.

Generated by OpenCVE AI on July 31, 2026 at 03:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade LightRAG to version 1.5.4 or later where the CORS_ORIGINS wildcard with credentials has been removed.
  • Reconfigure LightRAG to explicitly list only trusted origins in CORS_ORIGINS and set allow_credentials to False or to a restrictive value, thereby preventing credentialed cross‑origin requests from untrusted sites.
  • If an immediate upgrade or reconfiguration is not feasible, restrict API access by implementing network‑level controls such as firewall rules or VPN restrictions, and consider removing the allow_credentials flag through custom middleware or configuration patches.

Generated by OpenCVE AI on July 31, 2026 at 03:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-6x6h-qqr7-855w LightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requests
History

Wed, 15 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Hkuds
Hkuds lightrag
Vendors & Products Hkuds
Hkuds lightrag

Wed, 15 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
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.
Title LightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requests
Weaknesses CWE-942
References
Metrics cvssV3_1

{'score': 9.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T14:59:40.255Z

Reserved: 2026-07-10T18:59:00.047Z

Link: CVE-2026-61736

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T03:45:04Z

Weaknesses
  • CWE-942

    Permissive Cross-domain Security Policy with Untrusted Domains