Skip to main content
← All vulnerabilities
CVE-2026-48526GHSA-XGMM-8J9V-C9WXPYSEC-2026-179

PyJWT: Public-key JWK accepted as HMAC secret enables forged HS256 tokens when mixed families are allowed

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

Summary

PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, when the verifier is decoding JSON Web Tokens, while supporting both asymmetric and HMAC algorithms, the library does not validate use of JSON Web Keys in HMAC algorithm, allowing attacker to use the issuer public key as the secret key for HMAC algorithm. This vulnerability is fixed in 2.13.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • jpadilla pyjwt

    fixed in 2.13.0

  • pyjwtPyPI

    fixed in 2.13.0

References 1

GitHub · jpadilla/pyjwt