LightRAG is Vulnerable to Authentication Bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY protection
CVE-2026-61740 · GHSA-f4vv-55c2-5789 · published 2026-07-20
- Severity
- Critical
- CVSS score
- 9.3
- Chance of exploitation (EPSS)
- 1.3%
- Fixed in
- 1.5.4
A public scanner tests for this
The open-source nuclei scanner has a template for CVE-2026-61740, so checking a system for it takes one command and anyone can run it across the internet. Check your own systems with nuclei -id CVE-2026-61740 -u https://your-host, and treat an instance that is reachable from the internet as urgent. Only scan systems you are allowed to test.
Template names from projectdiscovery/nuclei-templates (MIT), as of 2026-12-06. ShieldMap names a template and does not link to it.
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Total
- CISA SSVC
Any LightRAG instance that is reachable on the network and configured with: LIGHTRAG_API_KEY set (i.e. the operator believes the server is protected), and AUTH_ACCOUNTS unset (i.e. they opted out of the password-based login flow) is fully accessible to any anonymous caller. This configuration is documented as the "simple API-Key authentication" mode in docs/LightRAG-API-Server.md, so it is expected to be common in production. …
Upgrade lightrag-hku to 1.5.4 or later.
Any one of the following individually closes the primary vector; all three are recommended for defense in depth: 1. Remove the hardcoded fallback. Mirror the fix for CVE-2026-30762: refuse to start (or emit a randomly-generated ephemeral secret that is not exported) whenever TOKEN_SECRET is unset, regardless of AUTH_ACCOUNTS. 2. Gate /auth-status and /login when LIGHTRAG_API_KEY is set. Either require Depends(combined_auth) or stop minting guest tokens whenever api_key_configured is true. 3. Fix the short-circuit in combined_dependency. Do not accept guest tokens as authentication when api_key_configured is true; always require a valid X-API-Key header in that configuration.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| lightrag-hku | PyPI | < 1.5.4 | 1.5.4 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalJupyter MCP Server: Host-header spoof bypasses the CVE-2026-77359/GHSA-9x8x-crjq-g64h fixjupyter-mcp-server
- CriticalUnauthenticated Superuser Token Issuance via Default-Enabled auto_login Endpointlangflow
- Criticallightrag-hku: No Rate Limiting on /login Endpoint Allows Brute-Force Attackslightrag-hku
- CriticalLightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requestslightrag-hku
- Highlightrag-hku: SSRF via IPv6-transition address bypass (NAT64, IPv4-compatible, 6to4) of the native-markdown image-download guardlightrag-hku
- HighLightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypasslightrag-hku
- Mediumlightrag-hku: Plaintext Passwords Compared Without Constant-Time Functionlightrag-hku
- Mediumlightrag-hku: Sensitive Information Exposure Through Raw Exception Messages in API Error Responseslightrag-hku
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.