---
schema_version: '1.0'
id: security-20260812-21b9fe
title: CVE-2026-48523 — pyjwt
url: https://osv.dev/vulnerability/PYSEC-2026-176
url_hash: 21b9fed68926d1bf091561ca4ddb0fd149c9182d641312cbf1f7b0dbd496d4b8
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-176
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-48523
- PYSEC-2026-176
- severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- pyjwt
- PyPI
lang: en
published_at: '2026-05-28T16:16:29Z'
fetched_at: '2026-08-12T16:00:04.747783Z'
updated_at: '2026-08-22T14:49:09Z'
status: published
content_hash: 74812cd8ce2097e8c3c352a8d127e6bba1a509225d6061d770220905f4c0f804
content_changed_at: '2026-08-22T13:15:21.893822Z'
license_note: full
summary: PyJWT is a JSON Web Token implementation in Python. From 2.9.0 to 2.12.1,
  there is a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete()
  are called with a PyJWK key. The token header alg is checked against the caller-supplied
  algorithms allow-list
summary_source: rss
summary_en: PyJWT is a JSON Web Token implementation in Python. From 2.9.0 to 2.12.1,
  there is a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete()
  are called with a PyJWK key. The token header alg is checked against the caller-supplied
  algorithms allow-list
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-48523
- library vulnerability
- pyjwt
- PyPI
- PYSEC-2026-176
- severity:CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/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-48523 — pyjwt

## TL;DR
PyJWT is a JSON Web Token implementation in Python. From 2.9.0 to 2.12.1, there is a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete() are called with a PyJWK key. The token header alg is checked against the caller-supplied algorithms allow-list

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

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

**Details:**
PyJWT is a JSON Web Token implementation in Python. From 2.9.0 to 2.12.1, there is a verifier-side algorithm allow-list bypass when jwt.decode() or jwt.decode_complete() are called with a PyJWK key. The token header alg is checked against the caller-supplied algorithms allow-list, but signature verification is performed with the algorithm bound to the PyJWK object instead of the header algorithm. An attacker who controls a registered JWK/JWKS private key can sign with a disallowed algorithm, advertise an allowed algorithm in the JWT header, and still be accepted. The issue affects the documented PyJWKClient.get_signing_key_from_jwt(...) flow. This vulnerability is fixed in 2.13.0.

**References:**
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-jq35-7prp-9v3f

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

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