python-jose through 3.5.0 Authentication Bypass via Empty HMAC Key
- State
- Published
- Severity
- 9.1 Critical
- Published
- Nov 2, 2026
- Updated
- Nov 28, 2026
- Reserved
- Nov 2, 2026
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.
| Product | Versions |
|---|---|
| python-jose mpdavis | 3.5.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.1 Critical | VulnCheck | |
| 3.1 | 7.4 High | VulnCheck |
Weaknesses
- CWE-347 Improper Verification of Cryptographic Signature
References
- https://github.com/mpdavis/python-jose/issues/398Issue Tracker
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/native.pyTechnical Details
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/cryptography_backend.pyTechnical Details
- VulnCheck Advisory: python-jose through 3.5.0 Authentication Bypass via Empty HMAC KeyThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.