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.
Published: 2026-09-03
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in python-jose allows an attacker who has the service’s public key to construct a valid HS256 JSON Web Token (JWT) that will verify successfully when the token validation routine does not explicitly restrict the algorithm. Because the library fails to treat the DER-encoded public key as an asymmetric key, the key is interpreted as an HMAC secret. The forged token can carry arbitrary claims such as elevated privileges or altered timestamps, giving the attacker unauthorized access or the ability to subvert application logic. This represents an injection‑type flaw (CWE‑347) that compromises integrity and authentication of the application.

Affected Systems

The affected product is the python‑jose library published by mpdavis, up to and including version 3.5.0. All users of that library that rely on JWT verification without algorithm restriction are potentially affected. No other vendors or products are listed as impacted.

Risk and Exploitability

The CVSS score of 9.3 places this issue in the critical severity range. No EPSS data is available, and it is not listed in CISA’s KEV catalog. The vulnerability is exploitable in environments where the public key of the service is publicly known or can be obtained by an attacker. The lack of explicit algorithm checks means that an attacker can forge a token and have it accepted by the application’s authentication layer, leading to unauthorized actions or privilege escalation. The attack vector is therefore application‑level, potentially remote, depending on the exposure of the public key.

Generated by OpenCVE AI on September 3, 2026 at 21:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade python‑jose to a version later than 3.5.0 that fully validates asymmetric keys during HMAC initialization.
  • In all JWT verification code, explicitly restrict the allowed algorithms to those expected (for example, reject HS256 if only RS256 or ES256 should be used).
  • If an immediate patch is not possible, move to a different JWT library that enforces algorithm checks, or temporarily disable signing verification for tokens signed with HS256 until the library is updated.

Generated by OpenCVE AI on September 3, 2026 at 21:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
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.
Title python-jose through 3.5.0 Algorithm Confusion via DER-encoded Public Key as HMAC Secret
First Time appeared Python-jose Project
Python-jose Project python-jose
Weaknesses CWE-347
CPEs cpe:2.3:a:python-jose_project:python-jose:*:*:*:*:*:*:*:*
Vendors & Products Python-jose Project
Python-jose Project python-jose
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 9.3, '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'}


Subscriptions

Python-jose Project Python-jose
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-03T18:54:26.563Z

Reserved: 2026-09-03T18:10:58.475Z

Link: CVE-2026-85394

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-03T19:17:31.257

Modified: 2026-09-03T19:17:31.257

Link: CVE-2026-85394

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T21:15:04Z

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature