Inefficient Regular Expression Complexity Affecting py3.10-pyjwt package, versions <2.14.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.19% (8th 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-MINIMOSLATEST-PY310PYJWT-20376779
  • published2 Oct 2026
  • disclosed28 Sept 2026

Introduced: 28 Sep 2026

NewCVE-2026-102270  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Minimos:latest py3.10-pyjwt to version 2.14.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3.10-pyjwt package and not the py3.10-pyjwt package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, PyJWT is_pem_format is affected because lazy PEM regular expression backtracks extensively. This occurs when a certificate-like input contains repeated BEGIN markers without a matching END marker. As a result, is_pem_format performs unbounded backtracking while searching for a PEM end marker. Consequently, an attacker can cause intensive CPU consumption. This issue is fixed in version 2.14.0.

CVSS Base Scores

version 3.1