Skip to content
CriticalVulnerability

CVE-2026-61740: LightRAG API key protection bypass via hardcoded guest token secret

Identifier
CVE-2026-61740
Published
Record updated
View JSON

Summary

LightRAG versions before 1.5.4, when deployed with LIGHTRAG_API_KEY set but AUTH_ACCOUNTS unset, allow X-API-Key protection to be bypassed. The auth module falls back to a hardcoded DEFAULT_TOKEN_SECRET, so /auth-status and /login can mint guest JWTs, and combined_dependency in lightrag/api/utils_api.py accepts a valid guest token before checking the API key. A remote unauthenticated attacker can reach combined_auth-guarded endpoints covering document read, upload and deletion, graph mutation, and queries.

Mitigation

Fixed in 1.5.4.