llamaCVEVulnerability Intelligence
/
Advisory · PyPA · PyPI · lightrag-hku

PYSEC-2026-2593

LightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypass

Parche disponible
Descargar PNG JSON
CVSS
—
N/D
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -102 d de la divulgación
Exposición129 dDesde la divulgación, 13 jul 2026, 9:36 a. m.
Detección126 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Parche 1.4.13
Monitoreo
Detectada
2 abr 26
13 jul 26
17 nov 26
19 nov 26
2 abr 26
30 may 26
27 jul 26
22 sept 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 1.4.13 lightrag-hku · -102 d desde divulgación
Divulgación Publicada PYSEC-2026-2593 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · PyPA · en inglés

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

Versiones

Rangos afectados

Afectada Corregida Última
lightrag-hku< 1.4.13
1.4.13
1.5.7
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypilightrag-hku
Corregida 1.4.13 -102 d 1.5.7 no afectada
Versiones corregidas1.4.13
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/advisories/GHSA-mcww-4hxq-hfr3
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-30762
Otrahttps://github.com/HKUDS/LightRAG/security/advisories/GHSA-mcww-4hxq-hfr3
Otrahttps://github.com/HKUDS/LightRAG
Otrahttps://pypi.org/project/lightrag-hku

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.