Skip to content
CVE PROGRAM SOURCE RECORD9.1 Critical

CVE-2026-120459

python-jose through 3.5.0 Authentication Bypass via Empty HMAC Key

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

mpdavis python-jose

Default version status: unaffected

  • 0 to ≤ 3.5.0affected
pkg:pypi/python-jose

References