Insufficient Verification of Data Authenticity Affecting pyjwt package, versions <1.7.1-2ubuntu2.1+esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.27% (19th 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-UBUNTU2004-PYJWT-15575875
  • published3 Apr 2026
  • disclosed13 Mar 2026

Introduced: 13 Mar 2026

CVE-2026-32597  (opens in a new tab)
CWE-345  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 pyjwt to version 1.7.1-2ubuntu2.1+esm1 or higher.

NVD Description

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

PyJWT is a JSON Web Token implementation in Python. Prior to 2.12.0, PyJWT does not validate the crit (Critical) Header Parameter defined in RFC 7515 §4.1.11. When a JWS token contains a crit array listing extensions that PyJWT does not understand, the library accepts the token instead of rejecting it. This violates the MUST requirement in the RFC. This vulnerability is fixed in 2.12.0.

References

CVSS Base Scores

version 3.1