CVE Catalog

CVE-2026-120459

HighCVSS 7.4
Published: Updated: Translated: NVD NIST

Summary

python-jose through 3.5.0 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge JWTs because HMACKey and CryptographyHMACKey accept zero-length HMAC secrets. When an application's HS256/HS384/HS512 verification key resolves to empty, such as an oct JWK with empty k, attackers can forge tokens with arbitrary claims.

Risk Assessment

Attackers can create tokens accepted by jwt.decode and impersonate any user, gaining unauthorized access to protected resources.

Recommendation

Update python-jose beyond 3.5.0 and ensure HMAC keys are never empty.

Other vulnerabilities in python-jose

See all
Original NVD description (English source)

python-jose through 3.5.0 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge JWTs because HMACKey and CryptographyHMACKey accept zero-length HMAC secrets. When an application's HS256/HS384/HS512 verification key resolves to empty, such as an oct JWK with empty k, attackers can forge tokens with arbitrary claims that jwt.decode accepts.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS