CVE-2026-61740: LightRAG: Authentication bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY protection
LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.4, when LightRAG is deployed with LIGHTRAG_API_KEY set but AUTH_ACCOUNTS unset, X-API-Key protection can be bypassed because lightrag/api/auth.py falls back to a hardcoded DEFAULT_TOKEN_SECRET, /auth-status and /login can mint guest JWTs, and combined_dependency in lightrag/api/utils_api.py accepts a valid guest token before checking the API key. A remote unauthenticated attacker can call endpoints guarded by combined_auth, including document read, upload, deletion, graph mutation, and query endpoints. This vulnerability is fixed in 1.5.4.
Security readout for executives and security teams
Plain-English summary
LightRAG versions before 1.5.4 can let outsiders bypass API key protection in a specific configuration. If exposed, an unauthenticated attacker may access or change documents, graph data, and query functions. The vendor identifies 1.5.4 as the fixed release.
Executive priority
Treat this as urgent for any internet-facing or partner-facing LightRAG deployment. The issue can defeat expected API key protection and affect confidentiality and integrity of RAG content.
Technical view
When LIGHTRAG_API_KEY is set but AUTH_ACCOUNTS is unset, LightRAG falls back to a hardcoded DEFAULT_TOKEN_SECRET. Public auth routes can mint guest JWTs, and combined_dependency accepts that token before checking the API key, exposing combined_auth-protected endpoints.
Likely exposure
Network-reachable LightRAG deployments below 1.5.4 are most exposed when LIGHTRAG_API_KEY is configured and AUTH_ACCOUNTS is not configured. Exposure depends on whether the API is reachable by untrusted users.
Exploitation context
The source bundle describes remote unauthenticated exploitation with low complexity and no user interaction. KEV is false, and the provided sources do not state active exploitation in the wild.
Researcher notes
The affected path is configuration-dependent: LIGHTRAG_API_KEY present, AUTH_ACCOUNTS absent. The key flaw is authentication precedence: guest JWT acceptance occurs before API key enforcement for combined_auth-protected functionality.
Mitigation direction
Upgrade LightRAG to version 1.5.4 or later.
Review the GitHub advisory and release notes for vendor guidance.
Identify deployments where AUTH_ACCOUNTS is unset and restrict access until remediated.
Rotate relevant API keys or tokens if exposure is suspected.
Review document, graph, and query activity for unauthorized changes.
Validation and detection
Inventory LightRAG versions and confirm no deployment is below 1.5.4.
Check environment configuration for LIGHTRAG_API_KEY set with AUTH_ACCOUNTS unset.
Confirm public access to LightRAG API routes is restricted.
Review logs for unauthenticated or guest-token access to protected endpoints.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-287: Credential and account abuse lookup
Authentication and credential weaknesses can make valid-account abuse and credential telemetry useful review starting points. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Authentication and credential weaknesses can make valid-account abuse and credential telemetry useful review starting points. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-287 · source CWE mapping
Improper Authentication
Improper Authentication represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Use of Hard-coded Credentials represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.