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.
Severity (CVSS)
| Base score | 9.1 |
|---|---|
| Severity | Critical |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-347 — Improper Verification of Cryptographic Signature
Affected products
| Vendor | Product | Versions |
|---|---|---|
| mpdavis | python-jose | 0 to <=3.5.0 [affected] |
References
- https://github.com/mpdavis/python-jose/issues/398 (issue-tracking)
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/native.py (technical-description)
- https://github.com/mpdavis/python-jose/blob/3.5.0/jose/backends/cryptography_backend.py (technical-description)
- https://www.vulncheck.com/advisories/python-jose-through-3.5.0-authentication-bypass-via-empty-hmac-key (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 03 Nov 2026 08:01 UTC.