Improper Verification of Cryptographic Signature Affecting python311-PyJWT package, versions <2.8.0-150400.8.20.1


Severity

Recommended
0.0
high
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.22% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES155-PYTHON311PYJWT-22192535
  • published4 Nov 2026
  • disclosed3 Nov 2026

Introduced: 3 Nov 2026

NewCVE-2026-102271  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade SLES:15.5 python311-PyJWT to version 2.8.0-150400.8.20.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python311-PyJWT package and not the python311-PyJWT package as distributed by SLES. See How to fix? for SLES:15.5 relevant fixed versions and status.

PyJWT is a Python implementation of JSON Web Token standards. From 2.4.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because asymmetric-key guard relies on textual markers that are absent from DER encoding. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a DER public key as the shared verification key. As a result, PyJWT uses public DER bytes as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. This issue is fixed in version 2.14.0.

CVSS Base Scores

version 3.1