- Home
- Vulnerabilities
- CVE-2026-120459
CVE-2026-120459
python-jose through 3.5.0 Authentication Bypass via Empty HMAC Key
Low
38/100
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 that jwt.decode accepts.
Affected products and versions
mpdavis (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| python-jose | up to 3.5.0 (included) |
— | CNA (vendor or assigner) |
Fix
Not provided by the vendor.
Workaround
No workaround provided.
Check whether you are affected
No verification method provided.
Timeline
- — CVE published (cve)
References
- https://github.com/mpdavis/python-jose/issues/398issue-tracking
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/native.pytechnical-description
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/cryptography_backend.pytechnical-description
- https://www.vulncheck.com/advisories/python-jose-through-3.5.0-authentication-bypass-via-empty-hmac-keythird-party-advisory
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- NVD
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N(CVSS 3.1, NVD)- Weakness
- CWE-347 · Autre (CWE-347)