cve.bz

CVE-2026-85394 mpdavis python-jose

9.3 criticalEPSS 0.2%Fix available

Critical (9.3) in mpdavis python-jose. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in python-jose 3.4.0.

On this page
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.

Severity

CVSS 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

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • python-jose (PyPI): fixed in 3.4.0

Ask an AI about this CVE

Show the promptExplain CVE-2026-85394 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-85394?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-85394?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-85394 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
mpdavis python-josethrough 3.5.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3qf3-8w2g-rqmxPyPIpython-jose<=3.5.0no fix published
GHSA-6c5p-j8vq-pqhjPyPIpython-jose<3.4.03.4.0
PYSEC-2024-232PyPIpython-jose<3.4.03.4.0
PYSEC-2026-4298PyPIpython-jose<=3.5.0no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTS, 24.04:LTSpython-joseno fix listedUBUNTU-CVE-2026-85394

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

1. **Attack complexity is higher than AC:L suggests**: While the CVSS vector claims AC:L, successful exploitation requires:

- The service must accept multiple signature algorithms (RS256 + HS256) during JWT verification, either explicitly via `algorithms=['RS256', 'HS256']` or implicitly via `algorithms=None` (the dangerous default)

- The attacker must obtain the service's public key (often available, but not always trivial)

- The attacker must convert the key to DER format

This is more nuanced than "any unauthenticated user can exploit with no special conditions."

2. **The vulnerability is an authentication bypass, not RCE**: The direct impact is forging authentication tokens (e.g., elevating to admin). While this could *lead* to RCE if the compromised service has code execution features (admin panels, file upload, etc.), the vulnerability itself does not execute code.

Red Hat's mitigation

This flaw can be mitigated by strictly restricting the signature algorithms accepted during JWT verification. Applications using python-jose should always pass an explicit allow-list containing only the intended asymmetric algorithms (for example, algorithms=["RS256"]) when calling jose.jwt.decode(), must not include HMAC algorithms such as HS256 in that list, and must not rely on the default algorithms=None behavior, which permits multiple algorithms. The algorithm-confusion attack requires that HMAC verification be accepted alongside public-key verification, so removing HMAC algorithms from the accepted set prevents an attacker from using the service's public key as an HMAC shared secret to forge tokens. No fixed upstream release is currently available: OSV upstream data lists 3.5.0 as the last affected version with no fixed version, so algorithm restriction remains the available protection.

ProductPackageStateAdvisory
Red Hat OpenShift AI 2.25rhoai/odh-llama-stack-core-rhel9:1794492228Fixed 2026-11-19RHSA-2026:100634
Red Hat Ansible Automation Platform 2python3x-joseNot affected
Red Hat Ansible Automation Platform 2python-joseNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-85394.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON