Amenazas en vivo

Todas las CVE / Pyjwt Project

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

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.

Texto de la fuente, sin modificar. NVD.

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

Aviso del fabricante · github.com ↗

  1. Aplica la actualización de seguridad del fabricante para Pyjwt.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCó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)

FabricanteProductoVersiones
pyjwt_projectpyjwt< 2.14.0

Boletines oficiales

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.