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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-287
- **Aliases:** GHSA-mcww-4hxq-hfr3, PYSEC-2026-2593
- **Published:** 2026-04-04T06:14:41.000Z
- **Modified:** 2026-07-13T16:43:52.932Z

## Who should check

- Projects that depend on PyPI package lightrag-hku (\< 1.4.13)

## Description

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

## Affected and fixed versions

- PyPI `lightrag-hku`: affected \< 1.4.13; fixed 1.4.13 (osv)

## Mitigation

- Upgrade lightrag-hku to 1.4.13 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-30762. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-30762.md
Affected: lightrag-hku < 1.4.13
Fixed in: 1.4.13

Steps:
1. Search this machine and project for lightrag-hku (PyPI): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-30762 being exploited?

There is no confirmed exploitation: CVE-2026-30762 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-30762?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-30762?

lightrag-hku \< 1.4.13.

### Is there a fix for CVE-2026-30762?

Yes. Fixed in 1.4.13. Upgrade lightrag-hku to 1.4.13 or later.

### How do I check if I'm affected by CVE-2026-30762?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/HKUDS/LightRAG/security/advisories/GHSA-mcww-4hxq-hfr3>
- vendor: <https://github.com/advisories/GHSA-mcww-4hxq-hfr3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-30762>
- other: <https://github.com/HKUDS/LightRAG>
- other: <https://pypi.org/project/lightrag-hku>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mcww-4hxq-hfr3> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2593> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-30762> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-30762>
