CVE-2026-30762: LightRAG Authentication Bypass Vulnerability
HIGHCVE-2026-30762 is a HIGH (CVSS 7.5) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting LightRAG libraries in the PyPI ecosystem. The issue involves hardcoded jwt signing secret allows authentication bypass. Remediation is available by upgrading affected packages to version 1.4.13.
CVE-2026-30762 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2026-30762
To remediate this vulnerability, upgrade all affected LightRAG dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install lightrag-hku>=1.4.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show lightrag-hku
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-30762, inspect your installed packages using pip:
pip show lightrag-hku
Analyze the terminal output to locate any version of LightRAG in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.13), your application is affected.
Note: The pip show lightrag-hku command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In LightRAG, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-30762 Affected LightRAG Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lightrag-hku
|
PyPI |
< 1.4.13
|
1.4.13
|
References
Frequently Asked Questions
What is CVE-2026-30762?
Which LightRAG versions are affected?
What version fixes CVE-2026-30762?
Is lightrag-hku affected?
What is the CVSS score of CVE-2026-30762?
What CWE is associated with CVE-2026-30762?
How can I check PyPI dependencies for CVE-2026-30762?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mcww-4hxq-hfr3",
"modified" : "2026-04-06T23:14:29Z",
"published" : "2026-04-04T06:14:41Z",
"aliases" : [ "CVE-2026-30762" ],
"summary" : "LightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypass",
"details" : "Subject: Security Vulnerability Report Hardcoded JWT Secret (CVE-2026-30762)\n\nHi HKUDS team,\n\nI'm writing to report a security vulnerability I discovered in LightRAG v1.4.10. This has been assigned CVE-2026-30762 by MITRE.\n\nVulnerability: Hardcoded JWT signing secret\nType: Improper Authentication (CWE-287)\nSeverity: High\nAttack Vector: Remote / Unauthenticated\n\nSummary:\nThe 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.\n\nReproduction:\n1. Install LightRAG v1.4.10 with AUTH_ACCOUNTS configured but no TOKEN_SECRET set\n2. Use PyJWT to sign a token: jwt.encode({\"sub\": \"admin\", \"role\": \"user\"}, \"lightrag-jwt-default-secret\", algorithm=\"HS256\")\n3. Send a request to any protected endpoint with the header: Authorization: Bearer <forged_token>\n4. Access is granted without valid credentials\n\nSuggested Fix:\nRequire 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.\n\nI'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.\n\nBest regards,\nVenkata Avinash Taduturi",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lightrag-hku"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.13"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.4.12"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/HKUDS/LightRAG/security/advisories/GHSA-mcww-4hxq-hfr3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/HKUDS/LightRAG"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-04T06:14:41Z",
"nvd_published_at" : null
}
}