CVE-2026-102270
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.
How to fix
- pyjwt_project pyjwt2.14.0 or later
- pyjwt2.14.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pyjwt_project pyjwt | v < 2.14.0 | 2.14.0 |
| pyjwtPyPI | v < 2.14.0 | 2.14.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.