
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-30762 is a hardcoded JWT signing secret vulnerability in LightRAG (pip package lightrag-hku) that allows unauthenticated attackers to forge valid JWT tokens and bypass authentication on any protected API endpoint. The vulnerability affects all versions up to and including 1.4.12, with version 1.4.13 containing the fix. It was discovered by Venkata Avinash Taduturi, published to the GitHub Advisory Database on April 4, 2026, and assigned GHSA-mcww-4hxq-hfr3. The CVSS v3.1 base score is 7.5 (High) (GitHub Advisory).
The root cause is the use of a hardcoded default JWT signing secret ("lightrag-jwt-default-secret") in lightrag/api/config.py (line 397), which is applied when the TOKEN_SECRET environment variable is not explicitly set (CWE-287: Improper Authentication). The AuthHandler class in lightrag/api/auth.py (lines 24–25) uses this secret for both signing and verifying HS256 JWT tokens, meaning any attacker who knows the publicly documented default secret can craft a cryptographically valid token. Because the secret is embedded in the source code and publicly known via the repository, no brute-force or cryptographic attack is required — exploitation is trivially achievable with a standard JWT library such as PyJWT (GitHub Advisory, HKUDS Advisory).
Successful exploitation grants an unauthenticated remote attacker full access to all protected API endpoints in a LightRAG deployment where AUTH_ACCOUNTS is configured but TOKEN_SECRET is not explicitly set. The primary impact is a high confidentiality loss — attackers can read, query, and exfiltrate all data managed by the LightRAG knowledge graph API, including potentially sensitive documents and embeddings ingested by the application. Integrity and availability are not directly impacted per the CVSS assessment, though unauthorized API access could enable further abuse depending on the deployment context (GitHub Advisory).
lightrag-hku version ≤ 1.4.12 with AUTH_ACCOUNTS configured.TOKEN_SECRET environment variable — this is the default configuration for many deployments.import jwt
token = jwt.encode({"sub": "admin", "role": "user"}, "lightrag-jwt-default-secret", algorithm="HS256")Authorization header of an HTTP request to any protected endpoint:GET /api/protected-endpoint HTTP/1.1
Host: <target>
Authorization: Bearer <forged_token>Authorization: Bearer headers from unauthenticated or unknown clients.sub claim set to admin or other privileged values without a matching login flow.HS256 and verifiable using the secret lightrag-jwt-default-secret appearing in request headers — these can be decoded and checked with any JWT debugger (e.g., jwt.io) to confirm use of the default secret.Upgrade lightrag-hku to version 1.4.13 or later, which contains the patch for this vulnerability (GitHub Advisory). As an immediate workaround for deployments that cannot upgrade, explicitly set the TOKEN_SECRET environment variable to a strong, randomly generated secret before starting the API server — this overrides the insecure default. Additionally, restrict network access to the LightRAG API to trusted hosts only, reducing the attack surface until a patch can be applied. The suggested long-term fix from the reporter is to require TOKEN_SECRET to be set whenever AUTH_ACCOUNTS is configured, and to refuse server startup if this condition is not met (HKUDS Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."