Vulnerability · Published Sep 28, 2026 · Assigned by GitHub_M

CVE-2026-102274PyJWT: Malformed RSA JWK aborts parsing of an entire JWK Set

Medium 5.9

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.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.5%top 53.9% 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.9.0 until 2.14.0, PyJWKSet does not catch the plain ValueError raised for malformed RSA JWK components by RSAAlgorithm.from_jwk in jwt/api_jwk.py. This occurs when a JWK Set contains a malformed RSA key alongside otherwise usable keys. As a result, one malformed member aborts construction of the entire PyJWKSet. Consequently, applications can experience authentication failures or request-level denial of service. This issue is fixed in version 2.14.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pyjwtno fix listedDEBIAN-CVE-2026-102274
Debian:13pyjwtno fix listedDEBIAN-CVE-2026-102274
Debian:14pyjwt2.14.0-1DEBIAN-CVE-2026-102274
PyPIpyjwt2.14.0PYSEC-2026-4152
PyPIpyjwt2.14.0GHSA-w6j9-cwv2-h6wq
Ubuntu:22.04:LTSpyjwt2.3.0-1ubuntu0.6USN-8934-1
Ubuntu:22.04:LTSpyjwt2.3.0-1ubuntu0.6UBUNTU-CVE-2026-102274
Ubuntu:24.04:LTSpyjwt2.7.0-1ubuntu0.4USN-8934-1
Ubuntu:24.04:LTSpyjwt2.7.0-1ubuntu0.4UBUNTU-CVE-2026-102274
Ubuntu:26.04:LTSpyjwt2.10.1-4ubuntu1.3UBUNTU-CVE-2026-102274
Ubuntu:26.04:LTSpyjwt2.10.1-4ubuntu1.3USN-8934-1
Ubuntu:26.10pyjwt2.13.0-1ubuntu1.1USN-8934-1
Ubuntu:26.10pyjwt2.13.0-1ubuntu1.1UBUNTU-CVE-2026-102274

Affected products (as reported)

VendorProductVersions
jpadilla pyjwt >= 2.9.0, < 2.14.0

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

References