Vulnerability · Published Sep 28, 2026 · Assigned by GitHub_M

CVE-2026-102270PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

Medium 4.4

In plain English

A medium-severity regular-expression denial of service 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.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.4Medium
Exploit odds (30 days)0.2%top 84.1% 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. Prior to 2.14.0, PyJWT is_pem_format is affected because lazy PEM regular expression backtracks extensively. This occurs when a certificate-like input contains repeated BEGIN markers without a matching END marker. As a result, is_pem_format performs unbounded backtracking while searching for a PEM end marker. Consequently, an attacker can cause intensive CPU consumption. This issue is fixed in version 2.14.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12pyjwtno fix listedDEBIAN-CVE-2026-102270
Debian:13pyjwtno fix listedDEBIAN-CVE-2026-102270
Debian:14pyjwt2.14.0-1DEBIAN-CVE-2026-102270
PyPIpyjwt2.14.0GHSA-jwrc-g2q2-pq5p
PyPIpyjwt2.14.0PYSEC-2026-4148
Ubuntu:26.10pyjwtno fix listedUBUNTU-CVE-2026-102270

Affected products (as reported)

VendorProductVersions
jpadilla pyjwt < 2.14.0

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

References