CVE-2026-120459 PUBLISHED

python-jose through 3.5.0 Authentication Bypass via Empty HMAC Key

Assigner: VulnCheck
Reserved: 02.11.2026 Published: 02.11.2026 Updated: 02.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS Score: 9.1

Product Status

Vendor mpdavis
Product python-jose
Versions Default: unaffected
  • affected from 0 to 3.5.0 (incl.)

Credits

  • Gavin Blacklock finder
  • Conner Webber finder

References

Problem Types

  • Improper Verification of Cryptographic Signature CWE