PyJWT: Public-key JWK accepted as HMAC secret enables forged HS256 tokens when mixed families are allowed
cve-program · CVE-2026-48526
PublishedPyJWT 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-48526 · CVE overview and exploitation status
cve-program · CVE-2026-48526
Related changes
Linked by CVE identifierNo related changes are available here.