{"answers":{"affected":"3 open source packages ship an affected version, including lightrag-hku. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39413 exists.","fix":"Upgrade lightrag-hku to 1.4.14 or later.","what":"CVE-2026-39413 is a medium-severity authentication bypass vulnerability in HKUDS LightRAG, published on 8 Apr 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-39413 and fix it if it is affected.\n\nWhat it is: CVE-2026-39413 is a medium-severity authentication bypass vulnerability in HKUDS LightRAG, published on 8 Apr 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39413 exists.\n\nAffected packages and fixed versions:\n- lightrag-hku (PyPI): affected all versions; fixed in 1.4.14\n- lightrag-hku (PyPI): affected all versions; fixed in 1.4.14\n- lightrag-hku (PyPI): affected all versions; fixed in 1.4.14\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39413/ (Markdown: https://insights.sbomify.com/CVE-2026-39413/index.md)","id":"CVE-2026-39413","markdown":"https://insights.sbomify.com/CVE-2026-39413/index.md","name":"CVE-2026-39413","record":{"aliases":["GHSA-8ffj-4hx4-9pgf","PYSEC-2026-2592"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"LightRAG API","requires_auth":"high_privilege","summary":"Attackers can bypass authentication in LightRAG API by forging JWT tokens with the 'none' algorithm, gaining unauthorized access.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"lightrag","vendor":"hkuds"}],"cvss":{"score":4.2,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.4.14, the LightRAG API is vulnerable to a JWT algorithm confusion attack where an attacker can forge tokens by specifying 'alg': 'none' in the JWT header. Since the jwt.decode() call does not explicitly deny the 'none' algorithm, a crafted token without a signature will be accepted as valid, leading to unauthorized access. This vulnerability is fixed in 1.4.14.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"LightRAG has a JWT Algorithm Confusion Vulnerability in LightRAG API","id":"CVE-2026-39413","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"MinIO affected a DoS via Unbounded Memory Allocation in S3 Select CSV Parsing","id":"CVE-2026-39414"},"packages":[{"ecosystem":"PyPI","fixed":["1.4.14"],"introduced":["0"],"last_affected":[],"package":"lightrag-hku","purl":null,"source":"GHSA-8ffj-4hx4-9pgf"},{"ecosystem":"PyPI","fixed":["1.4.14"],"introduced":["0"],"last_affected":[],"package":"lightrag-hku","purl":"pkg:pypi/lightrag-hku","source":"GHSA-8ffj-4hx4-9pgf"},{"ecosystem":"PyPI","fixed":["1.4.14"],"introduced":["0"],"last_affected":[],"package":"lightrag-hku","purl":"pkg:pypi/lightrag-hku","source":"PYSEC-2026-2592"}],"prev":{"headline":"LiquidJS: ownPropertyOnly bypass via sort_natural filter — prototype property information disclosure through sorting side-channel","id":"CVE-2026-39412"},"products":["LightRAG"],"published":"2026-04-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-22","vendors":["HKUDS"]},"summary":"Attackers can bypass authentication in LightRAG API by forging JWT tokens with the 'none' algorithm, gaining unauthorized access.","url":"https://insights.sbomify.com/CVE-2026-39413/"}