Vulnerability · Published Sep 28, 2026 · Assigned by GitHub_M

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

Medium 5.3

In plain English

A medium-severity security flaw in pyjwt from jpadilla. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.3%top 72.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pyjwtno fix listedDEBIAN-CVE-2026-102265
Debian:13pyjwtno fix listedDEBIAN-CVE-2026-102265
Debian:14pyjwt2.14.0-1DEBIAN-CVE-2026-102265
PyPIpyjwt2.14.0GHSA-8wjv-2p76-3863
PyPIpyjwt2.14.0PYSEC-2026-4142
Ubuntu:22.04:LTSpyjwtno fix listedUBUNTU-CVE-2026-102265
Ubuntu:24.04:LTSpyjwtno fix listedUBUNTU-CVE-2026-102265
Ubuntu:26.04:LTSpyjwtno fix listedUBUNTU-CVE-2026-102265
Ubuntu:26.10pyjwtno fix listedUBUNTU-CVE-2026-102265

Affected products (as reported)

VendorProductVersions
jpadilla pyjwt >= 2.13.0, < 2.14.0

Weakness: CWE-674 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References