CVE-2026-85394
python-jose through 3.5.0 Algorithm Confusion via DER-encoded Public Key as HMAC Secret
- State
- Published
- Severity
- 9.3 Critical
- Published
- Sep 3, 2026
- Updated
- Sep 14, 2026
- Reserved
- Sep 3, 2026
Description
python-jose through 3.5.0 fails to properly validate asymmetric keys in HMAC initialization, accepting DER-encoded public keys that lack PEM armor or SSH prefixes. Attackers holding the service's public key can forge HS256 tokens that pass verification when algorithms are not explicitly restricted. This is an incomplete fix for CVE-2024-33663.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 9.1 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | VulnCheck |
Weaknesses
- CWE-347 Improper Verification of Cryptographic Signature
Affected Products
| Product | Versions |
|---|---|
python-josempdavis |
|
References
- GitHub Issue #414issue-tracking
- https://github.com/mpdavis/python-joseproduct
- https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/backends/native.pytechnical-description
- https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/utils.pytechnical-description
- GitHub Security Advisory (GHSA-6c5p-j8vq-pqhj)related
- VulnCheck Advisory: python-jose through 3.5.0 Algorithm Confusion via DER-encoded Public Key as HMAC Secretthird-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.