CVE-2026-102268Pyjwt Project Pyjwt
Falsificación de tokens HMAC en PyJWT por validación incorrecta de formato PEM
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: sí · 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 anterior a la versión 2.14.0 no reconoce todas las representaciones PEM aceptadas por el cargador de cryptography. Cuando una aplicación mezcla algoritmos HMAC y asimétricos, un atacante que conoce la clave pública puede falsificar tokens HMAC autenticados 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. Prior to 2.14.0, is_pem_format in jwt/utils.py is affected because is_pem_format does not recognize every PEM representation accepted by the cryptography loader. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a mutated public-key PEM as raw key bytes. As a result, HMACAlgorithm.prepare_key treats the unrecognized asymmetric public key as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. This issue is fixed in version 2.14.0.
Qué hacer
Hay parche · versiones corregidas: 2.14.0
Actualiza PyJWT a la versión 2.14.0 o superior. Ejecuta: pip install --upgrade pyjwt
- 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.14.0 |
2.14.0 |
pip install "pyjwt>=2.14.0" |
| PyPI | pyjwt |
< 2.14.0 |
2.14.0 |
pip install "pyjwt>=2.14.0" |
Según OSV / GitHub Advisories (GHSA-ffc3-869f-jxw9, PYSEC-2026-4145). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| pyjwt_project | pyjwt | < 2.14.0 |
Boletines oficiales
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:5491-1 · 27 nov 2026 Crítica
- Security update for python-PyJWT · SUSE · SUSE-SU-2026:24944-1 · 19 nov 2026 Crítica
- Security update for python-PyJWT · SUSE · openSUSE-SU-2026:22383-1 · 19 nov 2026 Crítica
- Red Hat Security Advisory: Satellite 6.18.11 Async Update · Red Hat · RHSA-2026:99952 · 13 nov 2026 Crítica
- Red Hat Security Advisory: Satellite 6.16.15 Async Update · Red Hat · RHSA-2026:99949 · 13 nov 2026 Crítica
- Red Hat Security Advisory: Satellite 6.17.13 Async Update · Red Hat · RHSA-2026:99950 · 13 nov 2026 Crítica
Además: SUSE (+9), Red Hat (+9)
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