Amenazas en vivo

Todas las CVE / Lcobucci

CVE-2021-41106Lcobucci Jwt

Baja 3.3

Prioridad
20
CVSS 3.1
3.3
EPSS
0.2%
probabilidad de explotación en 30 días · percentil 6
Requiere autenticación
Sí
Publicada
28 sep 2021
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-345
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Qué pasa

JWT is a library to work with JSON Web Token and JSON Web Signature. Prior to versions 3.4.6, 4.0.4, and 4.1.5, users of HMAC-based algorithms (HS256, HS384, and HS512) combined with `Lcobucci\JWT\Signer\Key\LocalFileReference` as key are having their tokens issued/validated using the file path as hashing key - instead of the contents. The HMAC hashing functions take any string as input and, since users can issue and validate tokens, users are lead to believe that everything works properly. Versions 3.4.6, 4.0.4, and 4.1.5 have been patched to always load the file contents, deprecated the `Lcobucci\JWT\Signer\Key\LocalFileReference`, and suggest `Lcobucci\JWT\Signer\Key\InMemory` as the alternative. As a workaround, use `Lcobucci\JWT\Signer\Key\InMemory` instead of `Lcobucci\JWT\Signer\Key\LocalFileReference` to create the instances of one's keys.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Jwt.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
Packagist lcobucci/jwt ≥ 3.4.0 < 3.4.6 3.4.6 composer require "lcobucci/jwt:^3.4.6"
Packagist lcobucci/jwt ≥ 4.0.0 < 4.0.4 4.0.4 composer require "lcobucci/jwt:^4.0.4"
Packagist lcobucci/jwt ≥ 4.1.0 < 4.1.5 4.1.5 composer require "lcobucci/jwt:^4.1.5"

Según OSV / GitHub Advisories (GHSA-7322-jrq4-x5hf). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
lcobuccijwt≥ 3.4.0 < 3.4.6
lcobuccijwt≥ 4.0.0 < 4.0.4
lcobuccijwt≥ 4.1.0 < 4.1.5

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.