Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate exposed API-key-only LightRAG
-
DeliveryRequest guest JWT from /auth-status or /login
-
ExploitSubmit guest token to combined_auth endpoint
-
ExecutionBypass X-API-Key via guest short-circuit
-
ImpactRead/upload/delete documents and mutate graph
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the LightRAG server to run in the API-key-only profile: LIGHTRAG_API_KEY (X-API-Key) is set while AUTH_ACCOUNTS is left unset, which makes auth_configured False and causes AuthHandler to fall back to the public DEFAULT_TOKEN_SECRET. Under that specific condition an unauthenticated remote attacker can obtain a guest JWT from the /auth-status or /login endpoints or sign one with the known default secret, and combined_dependency accepts it before checking the API key (AV:N/AC:L/PR:N/UI:N - no authentication, user interaction, or privileges needed). Limiting factors: deployments that set AUTH_ACCOUNTS (password auth) are NOT affected because non-guest tokens are required, and fully-open deployments (no API key at all) were already intentionally open; the flaw is strictly the API-key-only misconfiguration window, and overriding TOKEN_SECRET away from the default reduces the token-forgery path. |
| Impact | This is a genuine high-priority issue rather than a high-CVSS-but-low-real-risk case, but its scope is gated by deployment mode. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L) scores 9.3 and is internally consistent with the description: network reachable, low complexity, no privileges, no user interaction, high confidentiality and integrity impact, low availability impact. Exploitation is trivial where the vulnerable profile is in use - an attacker only needs to mint or fetch a guest token and reach the API - which would normally map to a high EPSS, but no EPSS score, KEV entry, or public exploit was provided in the input. The key limiting signal, which the raw score does not capture, is configuration dependence: only the API-key-only profile (LIGHTRAG_API_KEY set AND AUTH_ACCOUNTS unset) is affected; fully-open and password-auth deployments are not. No CISA KEV listing and no EPSS/SSVC data were provided, so real-world exploitation breadth cannot be confirmed from the input and should be treated as plausible-but-unmeasured. Note the CVSS models VA:L (availability low) even though document/graph deletion could arguably justify a higher availability impact - verify against your data-criticality. |
| Exploit ScenarioDerived | An attacker discovers an internet-exposed LightRAG server running in the API-key-only profile, sends an unauthenticated request to /auth-status or /login to obtain a guest JWT (or forges one locally by signing with the known DEFAULT_TOKEN_SECRET), and presents that token to combined_auth-guarded endpoints. Without ever supplying the operator's X-API-Key, they read, upload, and delete indexed documents, mutate the knowledge graph, and run queries. Given AV:N/AC:L/PR:N/UI:N this requires only network reachability and a single scripted request; no public exploit is identified at time of analysis, though the vendor's regression test shows the forgery is trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 15, 2026
Authentication bypass in HKUDS LightRAG before 1.5.4 lets a remote unauthenticated attacker defeat X-API-Key protection when the server runs in the API-key-only profile (LIGHTRAG_API_KEY set, AUTH_ACCOUNTS unset). Because auth.py falls back to a public hardcoded DEFAULT_TOKEN_SECRET and /auth-status and /login freely mint guest JWTs, combined_dependency honored a guest token before ever checking the API key, exposing document read/upload/delete, graph mutation, and query endpoints. No public exploit is identified at time of analysis, but the underlying fix (PR #3319) ships a regression test showing that forging a valid guest token with the default secret is trivial; fixed in 1.5.4.
RemediationAI
Vendor-released patch: upgrade to LightRAG 1.5.4 or later, which reorders combined_dependency so guest tokens are ignored in the API-key-only profile and the X-API-Key header becomes mandatory (see GHSA-f4vv-55c2-5789, PR #3319, commit f7819aa, release tag v1.5.4). If you cannot patch immediately, the most direct compensating control is to eliminate the vulnerable configuration: either configure real password authentication by setting AUTH_ACCOUNTS (which makes auth_configured True and stops the guest-token fallback), or, if the deployment is meant to be private, place it fully behind a network boundary rather than relying on the API key alone. Additionally, override the JWT signing secret via TOKEN_SECRET so the server no longer falls back to the public DEFAULT_TOKEN_SECRET, and put the API behind a reverse proxy/WAF that requires the X-API-Key header and blocks unauthenticated access to /auth-status, /login, /documents, and query/graph endpoints. Trade-offs: setting AUTH_ACCOUNTS forces credentialed logins for the WebUI and API clients; network-level restriction breaks any intended public access; rotating TOKEN_SECRET invalidates existing tokens and forces re-login.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LightRAG is an open-source retrieval-augmented generation (RAG) framework (cpe:2.3:a:hkuds:lightrag) whose FastAPI server layer enforces access via a combined_auth dependency implemented in lightrag/api/utils_api.py, backed by JWT handling in lightrag/api/auth.py. The root cause is CWE-287 (Improper Authentication): in the API-key-only deployment profile, auth_configured is False, so AuthHandler falls back to the compiled-in public DEFAULT_TOKEN_SECRET, meaning any party can locally sign a valid HS256 guest JWT (or simply request one from the unauthenticated /auth-status and /login endpoints). The flawed control flow in combined_dependency accepted any valid guest token and short-circuited (returned success) before reaching the mandatory X-API-Key check, so possession of the operator API key became optional. The fix reorders the logic so that in API-key-only mode guest tokens are ignored and the X-API-Key header is the sole authority, while preserving guest access only in the fully-open mode (no API key and no AUTH_ACCOUNTS).
Know when Lightrag gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Unauthenticated network attacker (PR:N/UI:N/AC:L) in the affected profile reads data (C:H) and can upload/delete/mutate (I:H); deletion yields partial availability loss (A:L), scope unchanged.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 3 pypi packages depend on lightrag-hku (1 direct, 2 indirect)
Ecosystem-wide dependent count for version 1.5.4.
Executive ViewAI
HKUDS LightRAG before version 1.5.4 contains a critical authentication bypass vulnerability (CVSS 9.3) that allows unauthenticated remote attackers to completely circumvent API-key security controls in API-key-only configurations. Organizations deploying this mode face immediate risk of unauthorized access to sensitive documents, data queries, and graph operations.
Apply vendor patch to version 1.5.4. Pending patch application, enforce network-level IP whitelisting to restrict API access and configure AUTH_ACCOUNTS to disable API-key-only mode where operationally feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Cross-origin data theft in LightRAG server versions prior to 1.5.4 allows any malicious website to make authenticated, c
Server-side request forgery (CWE-918) in LightRAG before 1.5.5 lets an authenticated caller who can upload a Markdown or
Password recovery via a timing oracle in LightRAG's /login endpoint lets remote, unauthenticated attackers (CVSS PR:N/UI
Unthrottled password guessing against the LightRAG POST /login endpoint allows an unauthenticated remote attacker to sub
Stored cross-site scripting (CWE-79) in the LightRAG WebUI prior to 1.5.5 lets an attacker who can ingest a document per
LightRAG API server versions prior to 1.5.5 return raw Python exception text to network clients through error handlers i
EUVD-2026-44671
GHSA-f4vv-55c2-5789
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB