Skip to content
OpenAdvisories
Medium · 4.4 CVE-2026-102270 EUVD-2026-88537GHSA-jwrc-g2q2-pq5pPYSEC-2026-4148

PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.

Published Sep 28, 2026 · Updated Sep 29, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
jpadilla pyjwt < 2.14.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pyjwt 2.14.0-1 —
Debian 13 pyjwt No fix yet —
Debian 12 pyjwt No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pyjwt No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pyjwt No fix yet —
Ubuntu Pro 18.04 LTS pyjwt No fix yet —
Ubuntu Pro 16.04 LTS pyjwt No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
SLES 15 SP5 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
SLES 15 SP4 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
SLES 12 python-PyJWT 1.5.3-3.22.1 SUSE-SU-2026:5093-1
SLES 3 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 python-PyJWT 2.12.1-160000.3.1 SUSE-SU-2026:24219-1
SLES for SAP 15 SP6 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
SLES for SAP 15 SP5 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
SLES for SAP 15 SP4 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
SLES 16.0 python-PyJWT 2.12.1-160000.3.1 SUSE-SU-2026:24219-1
SLE Micro 6.2 python-PyJWT 2.12.1-160000.3.1 SUSE-SU-2026:24126-1
SLE Micro 6.1 python-PyJWT 2.12.1-slfo.1.1_3.1 SUSE-SU-2026:24377-1
SLE Micro 6.0 python-PyJWT 2.9.0-159998.1.1 SUSE-SU-2026:24134-1
SLE HPC 15 SP5 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
SLE HPC 15 SP4 python-PyJWT 2.8.0-150400.8.20.1 SUSE-SU-2026:5064-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-PyJWT 2.15.1-1.1 openSUSE-SU-2026:11994-1
openSUSE Leap 16.0 python-PyJWT 2.12.1-160000.3.1 openSUSE-SU-2026:22074-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-jwt 2.15.1-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling datadog-agent-7.78-core-integrations No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pyjwt < 2.14.0 2.14.0 GHSA-jwrc-g2q2-pq5p

Advisories 8

References