---
schema_version: '1.0'
id: security-20260812-26978b
title: CVE-2026-48525 — pyjwt
url: https://osv.dev/vulnerability/PYSEC-2026-178
url_hash: 26978b2545fea5e8205157fe7db3850dcb315ff5a4cc9bbd127a19da9d192cf8
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-178
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-48525
- PYSEC-2026-178
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- pyjwt
- PyPI
lang: en
published_at: '2026-05-28T16:16:29Z'
fetched_at: '2026-08-12T16:00:04.761316Z'
updated_at: '2026-08-22T14:49:09Z'
status: published
content_hash: 00a30db4ac874ca9f90116170539f7a0aa20fed42b06e6507b418311e06cdcd4
content_changed_at: '2026-08-22T13:15:21.899743Z'
license_note: full
summary: 'PyJWT is a JSON Web Token implementation in Python. From 2.8.0 to 2.12.1,
  when verifying detached JWS tokens using the unencoded-payload option ("b64": false,
  RFC 7797), PyJWT performs Base64URL decoding of the compact-serialization payload
  segment before enforcing the detached-p'
summary_source: rss
summary_en: 'PyJWT is a JSON Web Token implementation in Python. From 2.8.0 to 2.12.1,
  when verifying detached JWS tokens using the unencoded-payload option ("b64": false,
  RFC 7797), PyJWT performs Base64URL decoding of the compact-serialization payload
  segment before enforcing the detached-p'
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-48525
- library vulnerability
- pyjwt
- PyPI
- PYSEC-2026-178
- severity:CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- 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:07Z'
---

# CVE-2026-48525 — pyjwt

## TL;DR
PyJWT is a JSON Web Token implementation in Python. From 2.8.0 to 2.12.1, when verifying detached JWS tokens using the unencoded-payload option ("b64": false, RFC 7797), PyJWT performs Base64URL decoding of the compact-serialization payload segment before enforcing the detached-p

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

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

**Details:**
PyJWT is a JSON Web Token implementation in Python. From 2.8.0 to 2.12.1, when verifying detached JWS tokens using the unencoded-payload option ("b64": false, RFC 7797), PyJWT performs Base64URL decoding of the compact-serialization payload segment before enforcing the detached-payload rules. For b64=false, PyJWT later discards that decoded payload and replaces it with the caller-provided detached_payload. In practice, this turns the middle segment into an attacker-controlled “work amplifier”: a remote client can supply an arbitrarily large Base64URL payload segment that forces CPU work + memory allocations even if the signature is invalid. This creates an unauthenticated DoS vector against any endpoint that verifies detached JWS using PyJWT. This vulnerability is fixed in 2.13.0.

**References:**
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-w7vc-732c-9m39

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

## Source
元記事: [CVE-2026-48525 — pyjwt](https://osv.dev/vulnerability/PYSEC-2026-178) — published 2026-05-28T16:16:29Z
