CVE-2026-102265
published medium CVSS 3.1 · 5.3PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jpadilla | — | pyjwt>= 2.13.0, < 2.14.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Ubuntu | jammy | pyjwt | Advisory build | 2.3.0-1ubuntu0.8 | USN-9212-1 |
| Ubuntu | noble | pyjwt | Advisory build | 2.7.0-1ubuntu0.6 | USN-9212-1 |
| Ubuntu | resolute | pyjwt | Advisory build | 2.10.1-4ubuntu1.5 | USN-9212-1 |
| Ubuntu | jammy | python3-jwt | Advisory build | 2.3.0-1ubuntu0.8 | USN-9212-1 |
| Ubuntu | noble | python3-jwt | Advisory build | 2.7.0-1ubuntu0.6 | USN-9212-1 |
| Ubuntu | resolute | python3-jwt | Advisory build | 2.10.1-4ubuntu1.5 | USN-9212-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jpadilla | pyjwt | >= 2.13.0, < 2.14.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-674 CWE-674: Uncontrolled Recursion
References
3Provider assertions
2GitHub_M · cna
PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7186a25d3489292d2a65a657610c06877f4975b718d92664f7455b5e29121b39
- Ingested
- 01 Oct 2026, 15:07:44 UTC
- Source record
- Official CVE record