# CVE-2026-102265: PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-28T20:48:04.664Z
- Modified: 2026-10-07T20:57:14.290Z
- Also known as: GHSA-8wjv-2p76-3863, PYSEC-2026-4142
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, PyJWS._load in jwt/api_jws.py is affected because parser catches ValueError but not RecursionError. This occurs when a deeply nested token header reaches json.loads. As a result, RecursionError escapes the documented PyJWT error hierarchy. Consequently, an unauthenticated malformed token can cause a request-level failure and HTTP 500. This issue is fixed in version 2.14.0.

(As written by CVE List.)

## Affected

- jpadilla pyjwt: >= 2.13.0, < 2.14.0
- pyjwt (PyPI): from 2.13.0 before 2.14.0
- pyjwt_project pyjwt: 2.13.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-8wjv-2p76-3863> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/jpadilla/pyjwt/commit/06573692ebcdec8831c3927513b3e87c31fbbb62> (patch, web)
- <https://github.com/jpadilla/pyjwt/releases/tag/2.14.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-102265> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)
- <https://pypi.org/project/pyjwt> (package)
- <https://github.com/advisories/GHSA-8wjv-2p76-3863> (advisory)

## Sources

- CVE List: [CVE-2026-102265](https://www.cve.org/CVERecord?id=CVE-2026-102265), CVE Terms of Use, modified 2026-10-01
- GitHub Advisory Database: [GHSA-8wjv-2p76-3863](https://github.com/advisories/GHSA-8wjv-2p76-3863), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-102265](https://nvd.nist.gov/vuln/detail/CVE-2026-102265), Public domain, modified 2026-10-07
- PyPA Advisory Database: [PYSEC-2026-4142](https://osv.dev/vulnerability/PYSEC-2026-4142), CC-BY-4.0, modified 2026-10-01

---

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