GHSA-mcww-4hxq-hfr3

Suggest an improvement
Source
https://github.com/advisories/GHSA-mcww-4hxq-hfr3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-mcww-4hxq-hfr3/GHSA-mcww-4hxq-hfr3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mcww-4hxq-hfr3
Aliases
  • CVE-2026-30762
Published
2026-04-04T06:14:41Z
Modified
2026-04-06T23:34:49.476157Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
LightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypass
Details

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 AUTHACCOUNTS configured but no TOKENSECRET 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 TOKENSECRET to be explicitly set when AUTHACCOUNTS 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

Database specific
{
    "nvd_published_at": null,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-287"
    ],
    "github_reviewed_at": "2026-04-04T06:14:41Z",
    "github_reviewed": true
}
References

Affected packages

PyPI / lightrag-hku

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.4.13

Affected versions

0.*
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.8
0.0.9
1.*
1.0.0
1.0.1
1.0.3
1.0.5
1.0.6
1.0.8
1.0.9
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.2.1
1.2.2
1.2.3
1.2.5
1.2.6
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.3.8
1.3.9
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8rc4
1.4.8rc6
1.4.8rc7
1.4.8rc8
1.4.8rc9
1.4.8.1
1.4.8.2
1.4.9rc1
1.4.9rc2
1.4.9rc3
1.4.9rc4
1.4.9
1.4.9.1
1.4.9.2
1.4.9.3
1.4.9.4rc1
1.4.9.4
1.4.9.5
1.4.9.6
1.4.9.7
1.4.9.8
1.4.9.9
1.4.9.10
1.4.9.11
1.4.10
1.4.11rc2
1.4.11
1.4.12rc1
1.4.12
1.4.13rc1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-mcww-4hxq-hfr3/GHSA-mcww-4hxq-hfr3.json"
last_known_affected_version_range
"<= 1.4.12"