Live threats

All CVEs / Pyjwt Project

CVE-2026-48522Pyjwt Project Pyjwt

Medium 4.2 No auth needed

Priority
40
CVSS 3.1
4.2
EPSS
—
Auth required
No
Published
May 28, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-441, CWE-918
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pyjwt.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pyjwt ≥ 2.0.0 < 2.13.0 2.13.0 pip install "pyjwt>=2.13.0"
PyPI pyjwt < 2.13.0 2.13.0 pip install "pyjwt>=2.13.0"

Per OSV / GitHub Advisories (GHSA-993g-76c3-p5m4, PYSEC-2026-175). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pyjwt_projectpyjwt< 2.13.0

Official advisories

Also: SUSE (+5)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.