CVE-2026-85394mpdavis python-jose
HS256 Token Forgery via Incomplete Asymmetric Key Validation in python-jose
Critical 9.3 No auth needed
Follow: this CVE · mpdavis · mpdavis python-jose We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Sep 3, 2026
- Updated
- Sep 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-347
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- 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/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
What happens
python-jose through version 3.5.0 fails to properly validate asymmetric keys in HMAC initialization, accepting DER-encoded public keys without PEM armor. An attacker 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.
Show the original NVD text
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
No patch data · fixed versions: 3.4.0
Explicitly restrict allowed algorithms in JWT token verification. Check the python-jose repository for security updates.
- Apply the vendor's security update for python-jose.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | python-jose |
≤ 3.5.0 |
no fixed version | — |
| PyPI | python-jose |
< 3.4.0 |
3.4.0 |
pip install "python-jose>=3.4.0" |
| PyPI | python-jose |
< 3.4.0 |
3.4.0 |
pip install "python-jose>=3.4.0" |
| PyPI | python-jose |
≤ 3.5.0 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-3qf3-8w2g-rqmx, GHSA-6c5p-j8vq-pqhj, PYSEC-2024-232, PYSEC-2026-4298). Check the version in your lockfile before upgrading.
Affected products
- mpdavis · python-jose
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.