CVE-2026-48522Pyjwt Project Pyjwt
Media 4.2 Sin autenticación
Seguir: esta CVE · Pyjwt Project · Pyjwt Project Pyjwt Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 40
- CVSS 3.1
- 4.2
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 28 may 2026
- Actualizada
- 26 oct 2026
- Categoría
- Aplicación · Multiplataforma
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Qué pasa
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.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Pyjwt.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| 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" |
Según OSV / GitHub Advisories (GHSA-993g-76c3-p5m4, PYSEC-2026-175). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| pyjwt_project | pyjwt | < 2.13.0 |
Boletines oficiales
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:2627-1 · 25 jun 2026 Alta
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:2626-1 · 25 jun 2026 Alta
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:22170-1 · 19 jun 2026 Alta
Además: SUSE (+5)
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Exploit Mitigation Vendor Advisory