Uncontrolled Recursion in pyjwt - CVE-2026-102265
Published: September 17, 2026 / Updated: September 29, 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.
Affected software
openEuler
python-jwt
python-jwt-help
python3-jwt
How to mitigate CVE-2026-102265
python-jwt - addressed in versions 2.3.0-12, 2.8.0-11
python-jwt-help - addressed in versions 2.3.0-12, 2.8.0-11
python3-jwt - addressed in versions 2.3.0-12, 2.8.0-11