---
schema_version: '1.0'
id: security-20260812-2f2c68
title: CVE-2026-32597 — pyjwt
url: https://osv.dev/vulnerability/PYSEC-2026-120
url_hash: 2f2c68790239ee1f096d0b3a2623a7bc658a35694d98268734aa01ea594c1161
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-120
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-32597
- PYSEC-2026-120
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- pyjwt
- PyPI
lang: en
published_at: '2026-03-13T19:55:09Z'
fetched_at: '2026-08-12T16:00:04.742375Z'
updated_at: '2026-08-22T14:49:09Z'
status: published
content_hash: d6f2dc73939eaa22d2ae600843bd7b913e3ea0f80678948bcb3b192ce9981c95
content_changed_at: '2026-08-22T13:15:21.886743Z'
license_note: full
summary: 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 i
summary_source: rss
summary_en: 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 i
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-32597
- library vulnerability
- pyjwt
- PyPI
- PYSEC-2026-120
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- software security
entities_en:
- name: CVE
  type: data
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: PyPI
  type: artifact
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:49:06Z'
---

# CVE-2026-32597 — pyjwt

## TL;DR
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 i

## Key Points
- cve / CVE-2026-32597 / PYSEC-2026-120 / severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N / pyjwt / PyPI

## Details
**Severity:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
**Advisory:** PYSEC-2026-120 (CVE-2026-32597)

**Details:**
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:**
- https://lists.debian.org/debian-lts-announce/2026/05/msg00008.html
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-752w-5fwx-jx9f

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-120_

## Source
元記事: [CVE-2026-32597 — pyjwt](https://osv.dev/vulnerability/PYSEC-2026-120) — published 2026-03-13T19:55:09Z
