CVEvulnerability
CVE-2026-102270
4.9 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2026-09-28
- Last modified
- 2026-10-06
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 4.4 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
- CVSS 3.1 ([email protected])
- 4.9 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333
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 configurations
• pyjwt project pyjwt (< 2.14.0)
Related
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://github.com/jpadilla/pyjwt/commit/8b4e233a22206b34ec1186e912e75c0b2396ac07 Patch
- https://github.com/jpadilla/pyjwt/releases/tag/2.14.0 Product, Release Notes
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-jwrc-g2q2-pq5p Exploit, Patch, Vendor Advisory
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-jwrc-g2q2-pq5p Exploit, Patch, Vendor Advisory