---
schema_version: '1.0'
id: security-20260812-7765af
title: CVE-2026-48522 — pyjwt
url: https://osv.dev/vulnerability/PYSEC-2026-175
url_hash: 7765af04ce9bbe6d42352be2b5b08bef8f3b6880fe0cf6770d529b660082619d
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-175
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-48522
- PYSEC-2026-175
- severity:CVSS:3.1/AV:N/AC:H/PR:N/UI:R/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.744795Z'
updated_at: '2026-08-22T14:49:09Z'
status: published
content_hash: d32fe893d4e78dd40b3d38f3d1f2529b11fc487a73cf034bbedea619111fb74f
content_changed_at: '2026-08-22T13:15:21.890084Z'
license_note: full
summary: PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient
  passes its uri argument directly to urllib.request.urlopen() which uses Python stdlib's
  default OpenerDirector registering HTTPHandler, HTTPSHandler, FTPHandler, FileHandler,
  and DataHandler. There i
summary_source: rss
summary_en: PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient
  passes its uri argument directly to urllib.request.urlopen() which uses Python stdlib's
  default OpenerDirector registering HTTPHandler, HTTPSHandler, FTPHandler, FileHandler,
  and DataHandler. There i
summary_omitted_reason: null
redistribution: true
keywords_en:
- CVE
- CVE-2026-48522
- library vulnerability
- pyjwt
- PyPI
- PYSEC-2026-175
- severity:CVSS:3.1/AV:N/AC:H/PR:N/UI:R/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-48522 — pyjwt

## TL;DR
PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient passes its uri argument directly to urllib.request.urlopen() which uses Python stdlib's default OpenerDirector registering HTTPHandler, HTTPSHandler, FTPHandler, FileHandler, and DataHandler. There i

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

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

**Details:**
PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, PyJWKClient passes its uri argument directly to urllib.request.urlopen() which uses Python stdlib's default OpenerDirector registering HTTPHandler, HTTPSHandler, FTPHandler, FileHandler, and DataHandler. There is currently no documented option to restrict which schemes PyJWKClient will fetch. If an application's jku URL ingestion path accepts attacker-influenced URLs (e.g., from JWT header, configuration file, OAuth flow parameter), the attacker can cause PyJWKClient to read arbitrary local files via file:// (SSRF on local filesystem), cause PyJWKClient to attempt FTP / data-URI fetches (broader SSRF surface), or forge tokens that PyJWT verifies as valid. The library does not directly return non-HTTP(S) URI contents to the attacker; the chained "plant a JWKS to forge tokens" scenario described in the original report requires additional application-layer flaws (attacker write access to a filesystem path, untrusted jku derivation) that this fix does not address. This vulnerability is fixed in 2.13.0.

**References:**
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-993g-76c3-p5m4

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

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