CVE-2026-32597: CWE-345: Insufficient Verification of Data Authenticity in jpadilla pyjwt
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.
AI Analysis
Technical Summary
PyJWT, a Python library for JSON Web Token handling, fails to validate the 'crit' header parameter in versions before 2.12.0. According to RFC 7515 §4.1.11, if a JWS token contains a 'crit' array listing extensions that the implementation does not understand, the token must be rejected. PyJWT prior to 2.12.0 incorrectly accepts such tokens, violating this MUST requirement. This flaw can lead to integrity violations as attackers may craft tokens with unrecognized critical extensions that are accepted by the library. The issue is tracked as CVE-2026-32597 and is associated with CWE-345 (Insufficient Verification of Data Authenticity), CWE-863, and CWE-347. The vulnerability has a CVSS v3.1 score of 7.5 (high severity) with network attack vector, low complexity, no privileges or user interaction required, and impacts integrity but not confidentiality or availability. The vulnerability is fixed in PyJWT version 2.12.0.
Potential Impact
An attacker can craft JSON Web Tokens with unknown critical header extensions that PyJWT versions prior to 2.12.0 will accept instead of rejecting. This violates the RFC specification and can lead to integrity issues, potentially allowing unauthorized actions or privilege escalation in systems relying on PyJWT for token validation. There is no impact on confidentiality or availability reported. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in PyJWT version 2.12.0. Users should upgrade to version 2.12.0 or later to ensure proper validation of the 'crit' header parameter as per RFC 7515 §4.1.11. The Red Hat advisory notes that mitigation options other than upgrading do not meet their criteria for ease of use and applicability. Therefore, upgrading is the recommended remediation.
CVE-2026-32597: CWE-345: Insufficient Verification of Data Authenticity in jpadilla pyjwt
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.
CVSS v3.1
Score 7.5high
Affected software
jpadilla
pyjwt
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PyJWT, a Python library for JSON Web Token handling, fails to validate the 'crit' header parameter in versions before 2.12.0. According to RFC 7515 §4.1.11, if a JWS token contains a 'crit' array listing extensions that the implementation does not understand, the token must be rejected. PyJWT prior to 2.12.0 incorrectly accepts such tokens, violating this MUST requirement. This flaw can lead to integrity violations as attackers may craft tokens with unrecognized critical extensions that are accepted by the library. The issue is tracked as CVE-2026-32597 and is associated with CWE-345 (Insufficient Verification of Data Authenticity), CWE-863, and CWE-347. The vulnerability has a CVSS v3.1 score of 7.5 (high severity) with network attack vector, low complexity, no privileges or user interaction required, and impacts integrity but not confidentiality or availability. The vulnerability is fixed in PyJWT version 2.12.0.
Potential Impact
An attacker can craft JSON Web Tokens with unknown critical header extensions that PyJWT versions prior to 2.12.0 will accept instead of rejecting. This violates the RFC specification and can lead to integrity issues, potentially allowing unauthorized actions or privilege escalation in systems relying on PyJWT for token validation. There is no impact on confidentiality or availability reported. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available in PyJWT version 2.12.0. Users should upgrade to version 2.12.0 or later to ensure proper validation of the 'crit' header parameter as per RFC 7515 §4.1.11. The Red Hat advisory notes that mitigation options other than upgrading do not meet their criteria for ease of use and applicability. Therefore, upgrading is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-12T14:54:24.269Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-32597","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13512","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13508","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:17083","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13916","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19138","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:12176","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22330","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21517","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21431","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13672","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19355","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8748","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8746","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8747","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13553","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13545","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10140","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10141","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10184","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24977","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19712","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6720","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6568","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19375","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6912","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6926","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26226","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8437","vendor":"Red Hat"}]
Threat ID: 69b3375b2f860ef943024596
Added to database: 03/12/2026, 21:59:55 UTC
Last enriched: 08/12/2026, 13:02:27 UTC
Last updated: 09/12/2026, 22:13:36 UTC
Views: 425
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.