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

CVE-2026-30762: LightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypass

April 4, 2026 (updated April 6, 2026)

Subject: Security Vulnerability Report Hardcoded JWT Secret (CVE-2026-30762)

Hi HKUDS team,

I’m writing to report a security vulnerability I discovered in LightRAG v1.4.10. This has been assigned CVE-2026-30762 by MITRE.

Vulnerability: Hardcoded JWT signing secret Type: Improper Authentication (CWE-287) Severity: High Attack Vector: Remote / Unauthenticated

Summary: The file lightrag/api/config.py (line 397) uses a default JWT secret “lightrag-jwt-default-secret” when the TOKEN_SECRET environment variable is not set. The AuthHandler in lightrag/api/auth.py (lines 24-25) uses this secret to sign and verify tokens. An unauthenticated attacker can forge valid JWT tokens using the publicly known default secret and gain access to any protected endpoint.

Reproduction:

  1. Install LightRAG v1.4.10 with AUTH_ACCOUNTS configured but no TOKEN_SECRET set
  2. Use PyJWT to sign a token: jwt.encode({“sub”: “admin”, “role”: “user”}, “lightrag-jwt-default-secret”, algorithm=“HS256”)
  3. Send a request to any protected endpoint with the header: Authorization: Bearer <forged_token>
  4. Access is granted without valid credentials

Suggested Fix: Require TOKEN_SECRET to be explicitly set when AUTH_ACCOUNTS is configured. Refuse to start the API server if authentication is enabled but no custom secret is provided.

I’m following a 90-day responsible disclosure timeline from today’s date. Please let me know if you have any questions or need additional information.

Best regards, Venkata Avinash Taduturi

References

  • github.com/HKUDS/LightRAG
  • github.com/HKUDS/LightRAG/security/advisories/GHSA-mcww-4hxq-hfr3
  • github.com/advisories/GHSA-mcww-4hxq-hfr3
  • nvd.nist.gov/vuln/detail/CVE-2026-30762

Code Behaviors & Features

Detect and mitigate CVE-2026-30762 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.4.13

Fixed versions

  • 1.4.13

Solution

Upgrade to version 1.4.13 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

pypi/lightrag-hku/CVE-2026-30762.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:04 +0000.