Asymmetric Key Management Flaw in PyJWT by Auth0
CVE-2026-102271
7.4HIGH
What is CVE-2026-102271?
The flaw in PyJWT affects versions 2.4.0 through 2.13.0, where improper management of asymmetric key verification allows attackers to manipulate HMAC tokens. The issue arises when HMAC and asymmetric algorithms are incorrectly used together, leading to the incorrect treatment of DER public keys as HMAC secrets. This vulnerability can potentially allow an attacker to forge authenticated HMAC tokens if they possess the public key. The problem has been resolved in version 2.14.0, which addresses the key handling issue.
Affected Version(s)
pyjwt >= 2.4.0, < 2.14.0
