Improper Verification of Cryptographic Signature in pyjwt - #VU150528
Published: September 17, 2026
Vulnerability details
The vulnerability allows a remote attacker to forge JWT claims.
The vulnerability exists due to improper verification of cryptographic signatures in PyJWT\'s HMAC key handling when verifying tokens with a public JWK container supplied as an HMAC key. A remote attacker can use known public key material to create forged HS256, HS384, or HS512 tokens to forge JWT claims.
Exploitation requires an application to allow both symmetric and asymmetric algorithms in the same verification path and use raw public JWK or JWKS JSON as the HMAC key.