Skip to main content

LightRAG CVE-2026-61740

| EUVDEUVD-2026-44671 CRITICAL
Improper Authentication (CWE-287)
2026-07-15 GitHub_M GHSA-f4vv-55c2-5789
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Locate exposed API-key-only LightRAG
  2. Delivery
    Request guest JWT from /auth-status or /login
  3. Exploit
    Submit guest token to combined_auth endpoint
  4. Execution
    Bypass X-API-Key via guest short-circuit
  5. Impact
    Read/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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

LightRAG < 1.5.4

Affected Packages

pypi lightrag-hku fix: 1.5.4
euvd lightrag fix: 1.5.4

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

Vendor (GitHub_M) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.4 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 15, 2026 - 17:48 EUVD
CVE Published
Jul 15, 2026 - 14:14 cve.org
CRITICAL 9.3

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 pypi packages depend on lightrag-hku (1 direct, 2 indirect)

Ecosystem-wide dependent count for version 1.5.4.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
niche self-hosted open-source RAG framework, limited production enterprise footprint
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy