{"id":"CVE-2026-61740","published":"2026-07-15T14:14:41Z","modified":"2026-07-15T15:30:39Z","title":"LightRAG: Authentication bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY…","vendor":"HKUDS","product":"LightRAG","tier":"tail","description":{"text":"LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.4, when LightRAG is deployed with LIGHTRAG_API_KEY set but AUTH_ACCOUNTS unset, X-API-Key protection can be bypassed because lightrag/api/auth.py falls back to a hardcoded DEFAULT_TOKEN_SECRET, /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 call endpoints guarded by combined_auth, including document read, upload, deletion, graph mutation, and query endpoints. This vulnerability is fixed in 1.5.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01267,"percentile":0.70364,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-798","name":"Use of Hard-coded Credentials"}],"references":[{"url":"https://github.com/HKUDS/LightRAG/security/advisories/GHSA-f4vv-55c2-5789","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/HKUDS/LightRAG/pull/3319","tags":["x_refsource_MISC"]},{"url":"https://github.com/HKUDS/LightRAG/commit/f7819aa3a49a9d8d92eed8251d82d6ebcafa8cba","tags":["x_refsource_MISC"]},{"url":"https://github.com/HKUDS/LightRAG/releases/tag/v1.5.4","tags":["x_refsource_MISC"]}],"priority":{"score":25.6,"factors":[{"name":"EPSS percentile","points":14.07},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.51}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-61740","name":"LightRAG < 1.5.4 - Authentication Bypass via Guest Token","severity":"critical","path":"http/cves/2026/CVE-2026-61740.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-61740.yaml"}],"provenance":"source"},"vendorSlug":"hkuds","affectedVersions":[{"vendor":"HKUDS","product":"LightRAG","versions":["< 1.5.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-15T15:14:50.443978Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lightrag-hku","vulnerableRanges":["<1.5.4"],"patched":["1.5.4"],"from":["GHSA-f4vv-55c2-5789","PYSEC-2026-3475"],"provenance":"source"}],"summary":{"text":"LightRAG (by HKUDS) versions before 1.5.4 contain an authentication bypass in its API authentication logic: when LIGHTRAG_API_KEY is set without AUTH_ACCOUNTS, the X-API-Key check can be defeated through a hardcoded default token secret and publicly reachable guest token minting in the auth and API utility components. A remote attacker with no credentials and no user interaction can reach endpoints protected by the combined authentication check, including document reading, uploading, and deletion, graph mutation, and querying.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:47Z"},"euvd":{"id":"EUVD-2026-44671","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-6773","published":"2025-06-27","fixed":"1.3.8","kev":false},{"cve":"CVE-2026-39413","published":"2026-04-08","fixed":"1.4.14","kev":false,"link":{"from":"CVE-2026-39413","to":"CVE-2026-61740","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:lightrag-hku","fromFixed":"1.4.14","toFixed":"1.5.4","daysApart":98}]}},{"cve":"CVE-2026-61736","published":"2026-07-15","fixed":"1.5.4","kev":false},{"cve":"CVE-2026-61740","published":"2026-07-15","fixed":"1.5.4","kev":false},{"cve":"CVE-2026-85709","published":"2026-09-22","fixed":"1.5.5","kev":false},{"cve":"CVE-2026-85725","published":"2026-09-22","fixed":"1.5.5","kev":false},{"cve":"CVE-2026-85734","published":"2026-09-22","fixed":"1.5.5","kev":false}],"package":"PyPI:lightrag-hku"}}