Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-61740: CWE-287: Improper Authentication in HKUDS LightRAG

0
Critical
VulnerabilityCVE-2026-61740cvecve-2026-61740cwe-287cwe-798
Published: 07/15/2026 (07/15/2026, 14:14:41 UTC)
Source: CVE Database V5
Vendor/Project: HKUDS
Product: LightRAG

Description

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.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
hkuds/LightRAG
pkg:github/hkuds/LightRAG
Affected versions
<1.5.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 15:02:46 UTC

Technical Analysis

LightRAG prior to version 1.5.4 suffers from an improper authentication vulnerability (CWE-287) because when LIGHTRAG_API_KEY is configured but AUTH_ACCOUNTS is not set, the authentication logic falls back to a hardcoded DEFAULT_TOKEN_SECRET. This fallback enables unauthenticated attackers to bypass X-API-Key protection by minting guest JWTs via the /auth-status and /login endpoints. The combined_dependency function accepts these guest tokens before verifying the API key, allowing unauthorized access to sensitive endpoints such as document read, upload, deletion, graph mutation, and query. The vulnerability is addressed in LightRAG version 1.5.4.

Potential Impact

An unauthenticated remote attacker can bypass API key protections and gain unauthorized access to multiple sensitive endpoints, including document management and graph mutation functions. This can lead to unauthorized data access, modification, and deletion. The CVSS 4.0 base score is 9.3 (critical), reflecting the high impact and ease of exploitation without any privileges or user interaction.

Mitigation Recommendations

This vulnerability is fixed in LightRAG version 1.5.4. Users should upgrade to version 1.5.4 or later to remediate this issue. No official patch or temporary fix is indicated beyond upgrading. Until upgrading, ensure that both LIGHTRAG_API_KEY and AUTH_ACCOUNTS are properly configured to avoid fallback to the default token secret.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-10T18:59:00.047Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a579dd168715ace43e954db

Added to database: 07/15/2026, 14:48:49 UTC

Last enriched: 07/15/2026, 15:02:46 UTC

Last updated: 07/15/2026, 16:03:40 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses