CVE-2026-85394
CRITICAL 9.3CVSS 4.0python-jose algorithm confusion guard bypassed by DER-encoded public keys
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.
- Published
- 3 Sep 2026
- Last modified
- 15 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-327CWE-347
- Also known as
- CVE-2024-33663GHSA-3qf3-8w2g-rqmxGHSA-6c5p-j8vq-pqhjPYSEC-2024-232PYSEC-2026-4298
- Sources
- NVDJSONOSV GHSA-3qf3-8w2g-rqmxJSONOSV GHSA-6c5p-j8vq-pqhjJSONOSV PYSEC-2024-232JSONOSV PYSEC-2026-4298JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | CRITICAL 9.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | python-jose | <= 3.5.0 | |
| OSV | PyPI | python-jose | < 3.4.0 | 3.4.0 |
References
- https://github.com/advisories/GHSA-6c5p-j8vq-pqhj · ADVISORY
- https://github.com/mpdavis/python-jose · PACKAGE
- https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/backends/native.py · WEB
- https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/utils.py · WEB
- https://github.com/mpdavis/python-jose/issues/414 · WEB
- https://www.vulncheck.com/advisories/python-jose-through-3.5.0-algorithm-confusion-via-der-encoded-public-key-as-hmac-secret · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-85394 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-33663 · ADVISORY
- https://github.com/mpdavis/python-jose/issues/346 · WEB, REPORT
- https://github.com/pypa/advisory-database/tree/main/vulns/python-jose/PYSEC-2024-232.yaml · WEB
- https://www.vicarius.io/vsociety/posts/algorithm-confusion-in-python-jose-cve-2024-33663 · WEB
- https://pypi.org/project/python-jose · PACKAGE
- https://github.com/advisories/GHSA-3qf3-8w2g-rqmx · ADVISORY
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 3 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 26 Apr 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Apr 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Sep 2026)