CVE Catalog

CVE-2026-102270

MediumCVSS 4.4
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

An attacker can cause intensive CPU consumption by supplying specially crafted input, leading to denial of service. This may impact the availability of applications processing untrusted input.

Recommendation

Upgrade PyJWT to version 2.14.0 or later, which fixes the backtracking issue in is_pem_format. Avoid processing untrusted input in PEM-related functions.

Other vulnerabilities in PyJWT

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS