# CVE-2026-39413: LightRAG has a JWT Algorithm Confusion Vulnerability in LightRAG API

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-08T00:17:50.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-8ffj-4hx4-9pgf, PYSEC-2026-2592
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- HKUDS LightRAG: < 1.4.14; before 1.4.14
- lightrag-hku (PyPI): before 1.4.14

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/HKUDS/LightRAG/security/advisories/GHSA-8ffj-4hx4-9pgf> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/github/advisory-database/issues/7373>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39413> (advisory)
- <https://github.com/HKUDS/LightRAG/commit/728f2e54509d93e0a44f929c7f83f2c88d6d291b> (web)
- <https://github.com/HKUDS/LightRAG> (package)
- <https://pypi.org/project/lightrag-hku> (package)
- <https://github.com/advisories/GHSA-8ffj-4hx4-9pgf> (advisory)

## Sources

- CVE List: [CVE-2026-39413](https://www.cve.org/CVERecord?id=CVE-2026-39413), CVE Terms of Use, modified 2026-04-22
- GitHub Advisory Database: [GHSA-8ffj-4hx4-9pgf](https://github.com/advisories/GHSA-8ffj-4hx4-9pgf), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-39413](https://nvd.nist.gov/vuln/detail/CVE-2026-39413), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2592](https://osv.dev/vulnerability/PYSEC-2026-2592), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-39413 · Whole record: https://cve.day/CVE-2026-39413.json · Rebuilt by cve.day 2026-11-25T22:59:18.307Z
