The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-32597

CVE-2026-32597: PyJWT Information Disclosure Vulnerability

CVE-2026-32597 is an information disclosure vulnerability in PyJWT that fails to validate critical header parameters in JWS tokens. This article covers technical details, affected versions, and mitigation steps.

Published: March 20, 2026

CVE-2026-32597 Overview

PyJWT is a widely-used JSON Web Token (JWT) implementation in Python. Prior to version 2.12.0, PyJWT fails to properly validate the crit (Critical) Header Parameter as defined in RFC 7515 §4.1.11. When a JWS token contains a crit array listing extensions that PyJWT does not understand, the library incorrectly accepts the token instead of rejecting it. This behavior violates the MUST requirement specified in the RFC, potentially allowing attackers to bypass security controls by crafting tokens with critical extensions that should be enforced but are silently ignored.

Critical Impact

Attackers can craft malicious JWT tokens containing unknown critical extensions that PyJWT will accept, potentially bypassing authentication and authorization controls in applications relying on proper JWT validation.

Affected Products

  • PyJWT versions prior to 2.12.0
  • Applications using PyJWT for JWT validation without additional crit header checks
  • Python web applications and APIs relying on PyJWT for token-based authentication

Discovery Timeline

  • 2026-03-13 - CVE-2026-32597 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-32597

Vulnerability Analysis

This vulnerability represents a Cryptographic Vulnerability and Input Validation Error in PyJWT's handling of the RFC 7515 Critical Header Parameter. According to the RFC specification, when a JWT contains a crit header parameter listing extensions that the implementation does not understand or support, the token MUST be rejected as invalid. PyJWT's failure to enforce this requirement creates a security gap where tokens with unrecognized critical extensions are processed as valid.

The vulnerability is classified under CWE-345 (Insufficient Verification of Data Authenticity), as PyJWT fails to properly verify that all critical extensions specified in the token are understood and enforced by the library. This can lead to authentication bypass scenarios where attackers include critical extensions in their tokens that should trigger specific security behaviors, but are instead silently ignored.

Root Cause

The root cause lies in PyJWT's token validation logic, which does not implement the RFC 7515 §4.1.11 requirement to reject tokens containing unrecognized values in the crit header array. The library processes the token without checking whether it understands and can properly enforce all extensions listed as critical, violating the specification's mandatory rejection requirement.

Attack Vector

An attacker can exploit this vulnerability by crafting a JWT token that includes a crit header parameter containing extensions that PyJWT does not recognize. Since the library fails to reject such tokens, an attacker could potentially bypass security mechanisms that rely on proper crit header validation.

The attack is network-based and requires no privileges or user interaction. An attacker with knowledge of this vulnerability could craft malicious tokens and submit them to applications using vulnerable PyJWT versions. If the application relies on PyJWT's validation as its sole defense, the malicious token may be accepted despite containing critical extensions that should have caused rejection.

For technical details on the vulnerability mechanism, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-32597

Indicators of Compromise

  • JWT tokens containing crit header parameters with unusual or unexpected extension names
  • Authentication logs showing tokens with unrecognized critical headers being accepted
  • Anomalous API access patterns using tokens with non-standard JWT structures

Detection Strategies

  • Monitor application logs for JWT tokens containing crit header parameters that list unknown extensions
  • Implement additional validation layers that explicitly check for and reject tokens with unrecognized critical extensions
  • Use security scanning tools to identify PyJWT versions in your dependency tree that are below 2.12.0
  • Conduct code reviews to identify applications relying solely on PyJWT for JWT validation without additional checks

Monitoring Recommendations

  • Enable verbose logging for JWT validation failures and successes to track token structure anomalies
  • Deploy application-level monitoring to alert on tokens with unusual header structures
  • Implement dependency scanning in CI/CD pipelines to detect vulnerable PyJWT versions
  • Monitor for authentication anomalies that may indicate token manipulation attempts

How to Mitigate CVE-2026-32597

Immediate Actions Required

  • Upgrade PyJWT to version 2.12.0 or later immediately
  • Audit applications using PyJWT to identify all affected deployments
  • Implement additional validation logic to reject tokens with unrecognized crit header values as a defense-in-depth measure
  • Review authentication logs for any suspicious token activity that may indicate exploitation attempts

Patch Information

The vulnerability is fixed in PyJWT version 2.12.0. Organizations should update their Python dependencies to include this patched version. The fix ensures that tokens containing crit header parameters with unrecognized extensions are properly rejected in accordance with RFC 7515 requirements.

For complete patch details and upgrade instructions, refer to the PyJWT Security Advisory.

Workarounds

  • Implement a pre-validation wrapper that inspects incoming tokens for crit headers and rejects tokens containing any critical extensions not explicitly whitelisted
  • Add application-level validation that parses the JWT header before passing to PyJWT and rejects tokens with unknown critical extensions
  • Consider using alternative JWT libraries that properly implement RFC 7515 §4.1.11 requirements until PyJWT can be upgraded
bash
# Upgrade PyJWT to patched version
pip install --upgrade pyjwt>=2.12.0

# Verify installed version
pip show pyjwt | grep Version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPyjwt

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-345
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-45768: PyJWT Information Disclosure Vulnerability

  • CVE-2024-53861: PyJWT Issuer Claim Validation DoS Flaw

  • CVE-2022-29217: PyJWT Auth Bypass Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English