Uncontrolled Recursion in pyjwt - #VU150521
Published: September 17, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to uncontrolled recursion in the PyJWS._load() header JSON parsing path when processing a compact token with a deeply nested JSON header. A remote attacker can send an unsigned crafted token to cause a denial of service.
The header is parsed before signature verification, and the resulting exception can bypass applications\' normal PyJWT error handling.