Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. PyJWT
  4. ›
  5. CVE-2026-32597

CVE-2026-32597: PyJWT accepts unknown `crit` header extensions

March 13, 2026 (updated March 16, 2026)

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 is the same class of vulnerability as CVE-2025-59420 (Authlib), which received CVSS 7.5 (HIGH).


References

  • github.com/advisories/GHSA-752w-5fwx-jx9f
  • github.com/jpadilla/pyjwt
  • github.com/jpadilla/pyjwt/security/advisories/GHSA-752w-5fwx-jx9f
  • nvd.nist.gov/vuln/detail/CVE-2026-32597

Code Behaviors & Features

Detect and mitigate CVE-2026-32597 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.12.0

Fixed versions

  • 2.12.0

Solution

Upgrade to version 2.12.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity
  • CWE-863: Incorrect Authorization

Source file

pypi/PyJWT/CVE-2026-32597.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:17 +0000.