CVE-2026-102266Pyjwt Project Pyjwt
Falsificación de tokens HMAC en PyJWT por validación insuficiente de claves JWK
Crítica 9.1 Sin autenticación
Seguir: esta CVE · Pyjwt Project · Pyjwt Project Pyjwt Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 28 sep 2026
- Actualizada
- 7 oct 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-347
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Qué pasa
PyJWT versión 2.13.0 no valida correctamente las claves oct vacías en JWK Sets de confianza, permitiendo que un atacante firme tokens HMAC con una clave de longitud cero. Los tokens falsificados pueden contener reclamaciones autenticadas arbitrarias sin necesidad de autenticación previa.
Ver el texto original de NVD (en inglés)
PyJWT is a Python implementation of JSON Web Token standards. From 2.13.0 until 2.14.0, HMACAlgorithm.from_jwk is affected because PyJWK verification path used the decoded key without applying prepare_key validation. This occurs when a trusted JWK Set contains an oct entry with an empty k value. As a result, an attacker signs an HMAC token with the same zero-length key accepted by PyJWT. Consequently, forged token can carry arbitrary authenticated claims. This issue is fixed in version 2.14.0.
Qué hacer
Hay parche · versiones corregidas: 2.14.0
Actualiza PyJWT a versión 2.14.0 o superior para aplicar la validación correcta de claves JWK.
- 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.13.0 < 2.14.0 |
2.14.0 |
pip install "pyjwt>=2.14.0" |
| PyPI | pyjwt |
≥ 2.13.0 < 2.14.0 |
2.14.0 |
pip install "pyjwt>=2.14.0" |
Según OSV / GitHub Advisories (GHSA-9j54-fg26-wv3r, PYSEC-2026-4143). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| pyjwt_project | pyjwt | 2.13.0 |
Boletines oficiales
- Red Hat Security Advisory: fence-agents security update · Red Hat · RHSA-2026:98612 · 13 nov 2026 Crítica
- Red Hat Security Advisory: fence-agents security update · Red Hat · RHSA-2026:98503 · 13 nov 2026 Crítica
- Red Hat Security Advisory: fence-agents security update · Red Hat · RHSA-2026:95012 · 13 nov 2026 Crítica
- python313-PyJWT-2.15.1-1.1 on GA media · SUSE · openSUSE-SU-2026:11994-1 · 4 oct 2026 Crítica
Además: Red Hat (+6)
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 Patch
- github.com Product Release Notes
- github.com Exploit Vendor Advisory