Skip to content
Heist/ feed
Medium

PyJWT: Uncaught RecursionError in jwt.decode() on deeply nested token header

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-102265

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-102265

pyjwt

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "jpadilla",
    "product": "pyjwt",
    "versions": [
      {
        "status": "affected",
        "version": ">= 2.13.0, < 2.14.0"
      }
    ]
  }
]
Related CVEs
CVE-2026-102265

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#5293 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement