Skip to main content
← All vulnerabilities
CVE-2026-102270GHSA-JWRC-G2Q2-PQ5PPYSEC-2026-4148

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.14.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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. Consequently, an attacker can cause intensive CPU consumption. This issue is fixed in version 2.14.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jpadilla pyjwt

    fixed in 2.14.0

  • pyjwtPyPI

    fixed in 2.14.0

References 3

GitHub · jpadilla/pyjwt