JWT Token Vulnerability in Python-Jose by Python Package Index
CVE-2025-61152
6.5MEDIUM
What is CVE-2025-61152?
The vulnerability in python-jose versions up to 3.3.0 enables the decoding of JSON Web Tokens (JWT) with the 'alg=none' algorithm, allowing attackers to create unauthorized JWTs. This oversight permits the acceptance of tokens devoid of cryptographic signature verification, potentially leading to privilege escalation and unauthorized access in applications dependent on token validation. To safeguard against this, developers must explicitly reject 'alg=none' tokens, a requirement not practiced by the library. Failing to enforce this measure exposes applications to severe security risks.