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

Medium 5.9 Published Updated

A malformed RSA key in a JWK Set causes PyJWT to abort parsing, leading to authentication failures or denial of service for applications using the library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-102274?

CVE-2026-102274 is a medium-severity denial of service vulnerability in jpadilla pyjwt, published on 28 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-755

Which versions are affected by CVE-2026-102274?

3 open source packages ship an affected version, including pyjwt and PyJWT. It affects 1 product.

PackageAffectedFixed in
pyjwt PyPIFrom 2.9.02.14.0
pyjwt PyPIFrom 2.9.02.14.0
PyJWT PyPIFrom 2.9.02.14.0

Products include Pyjwt Project Pyjwt.

How do I fix CVE-2026-102274?

Upgrade pyjwt to 2.14.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-102274 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-102274 exists.

Sources

Also known as AZL-105236, CLEANSTART-2026-LD97842, CLEANSTART-2026-YX87387, CLSA-2026-1790745888, DEBIAN-CVE-2026-102274, ECHO-aad4-edd4-a5d2 and 28 more.

Is CVE-2026-102274 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free