Uncaught Exception Affecting python3-jwt+crypto package, versions <0:2.4.0-1.amzn2023.0.6


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.41% (36th 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-AMZN2023-PYTHON3JWTCRYPTO-21704021
  • published25 Oct 2026
  • disclosed28 Sept 2026

Introduced: 28 Sep 2026

CVE-2026-101918  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 python3-jwt+crypto to version 0:2.4.0-1.amzn2023.0.6 or higher.
This issue was patched in ALAS2023-2026-3298.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-jwt+crypto package and not the python3-jwt+crypto package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

PyJWT is a Python implementation of JSON Web Token standards. From 2.0.0a1 until 2.15.0, PyJWT PyJWKClient.get_signing_key_from_jwt is affected because payload parser catches ValueError but not RecursionError. This occurs when an attacker-controlled recursively nested payload reaches json.loads. As a result, documented PyJWT exception handling does not contain the failure. Consequently, an unauthenticated request can raise an exception that may produce an HTTP 500 response. The advisory-defined affected implementation also includes jwt/api_jwt.py, verify_signature=False. This issue is fixed in version 2.15.0.

CVSS Base Scores

version 3.1