Description
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.
Published: 2026-03-12
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Critical header parameter validation failure
Action: Apply Patch
AI Analysis

Impact

PyJWT prior to 2.12.0 does not validate the crit header parameter defined in RFC 7515 §4.1.11. When a JWS contains a crit array listing extensions that the library does not understand, PyJWT accepts the token instead of rejecting it. This behavior violates the RFC’s MUST requirement, potentially allowing an attacker to supply malicious extensions and manipulate token validation, leading to unauthorized access or other security compromise. The weakness is categorized under CWE‑345, CWE‑347, and CWE‑863.

Affected Systems

The vulnerability affects the PyJWT library published by jpadilla. All installed versions prior to 2.12.0 are susceptible. The product is identified by the CPE cpe:2.3:a:pyjwt_project:pyjwt:*:*:*:*:*:*:*:*.

Risk and Exploitability

The CVSS base score is 7.5, indicating a high severity. The EPSS score is below 1%, suggesting a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. An attacker can remotely exploit this flaw by crafting a JWS token containing unknown crit header extensions; the library will accept the token, providing a potential attack vector. Because no specific conditions or network restrictions are described in the data, remote exploitation is considered feasible but the low EPSS underlines that actual attack occurrences are presently infrequent.

Generated by OpenCVE AI on March 19, 2026 at 15:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PyJWT to version 2.12.0 or later.

Generated by OpenCVE AI on March 19, 2026 at 15:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-752w-5fwx-jx9f PyJWT accepts unknown `crit` header extensions
Ubuntu USN Ubuntu USN USN-8133-1 PyJWT vulnerability
History

Thu, 19 Mar 2026 13:45:00 +0000

Type Values Removed Values Added
First Time appeared Pyjwt Project
Pyjwt Project pyjwt
CPEs cpe:2.3:a:pyjwt_project:pyjwt:*:*:*:*:*:*:*:*
Vendors & Products Pyjwt Project
Pyjwt Project pyjwt

Fri, 13 Mar 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 13 Mar 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Jpadilla
Jpadilla pyjwt
Vendors & Products Jpadilla
Jpadilla pyjwt

Fri, 13 Mar 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-347
References
Metrics threat_severity

None

threat_severity

Important


Thu, 12 Mar 2026 22:00:00 +0000

Type Values Removed Values Added
Description 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.
Title PyJWT accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation)
Weaknesses CWE-345
CWE-863
References
Metrics cvssV3_1

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


Subscriptions

Jpadilla Pyjwt
Pyjwt Project Pyjwt
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-13T14:58:58.769Z

Reserved: 2026-03-12T14:54:24.269Z

Link: CVE-2026-32597

cve-icon Vulnrichment

Updated: 2026-03-13T14:48:58.019Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-13T19:55:09.500

Modified: 2026-03-19T13:30:29.217

Link: CVE-2026-32597

cve-icon Redhat

Severity : Important

Publid Date: 2026-03-12T21:41:50Z

Links: CVE-2026-32597 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-03-23T10:00:02Z

Weaknesses