CVE-2026-120459
python-jose through 3.5.0 contains an authentication bypass vulnerability that allows unauthenticated attackers to forge JWTs because HMACKey and CryptographyH…
Impact
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.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed.
Affected products · Mpdavis
| Product | Affected versions |
|---|---|
| Python-jose | through 3.5.0 Version 0 ≤3.5.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/mpdavis/python-jose/issues/398
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/native.py
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/cryptography_backend.py
- https://www.vulncheck.com/advisories/python-jose-through-3.5.0-authentication-bypass-via-empty-hmac-key
- https://github.com/advisories/GHSA-7jv8-hwmh-86qc
- https://nvd.nist.gov/vuln/detail/CVE-2026-120459