Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. lightrag-hku
  4. ›
  5. CVE-2026-61740

CVE-2026-61740: LightRAG is Vulnerable to Authentication Bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY protection

July 20, 2026

When LightRAG is deployed with LIGHTRAG_API_KEY set but AUTH_ACCOUNTS unset (an officially documented “API-Key authentication” mode), the X-API-Key protection can be bypassed by any remote unauthenticated attacker. The bypass does not require network contact with the victim server — an attacker can mint a valid guest JWT offline using the hardcoded DEFAULT_TOKEN_SECRET committed in the repository and then call any endpoint guarded by Depends(combined_auth), including destructive operations such as DELETE /documents, POST /documents/upload, /documents/clear_cache, and POST /query.

This is distinct from the previously-fixed GHSA-mcww-4hxq-hfr3 / CVE-2026-30762, which only covered the AUTH_ACCOUNTS-configured case. The API-Key-only deployment profile is still fully exploitable on current main (commit 157c331, v1.4.15).

References

  • github.com/HKUDS/LightRAG/commit/f7819aa3a49a9d8d92eed8251d82d6ebcafa8cba
  • github.com/HKUDS/LightRAG/pull/3319
  • github.com/HKUDS/LightRAG/releases/tag/v1.5.4
  • github.com/HKUDS/LightRAG/security/advisories/GHSA-f4vv-55c2-5789
  • github.com/advisories/GHSA-f4vv-55c2-5789
  • nvd.nist.gov/vuln/detail/CVE-2026-61740

Code Behaviors & Features

Detect and mitigate CVE-2026-61740 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.5.4

Fixed versions

  • 1.5.4

Solution

Upgrade to version 1.5.4 or above.

Impact 9.4 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-798: Use of Hard-coded Credentials

Source file

pypi/lightrag-hku/CVE-2026-61740.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:21 +0000.