CVE-2025-30144

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 5.0.6, the fast-jwt library does not properly validate the iss claim based on the RFC 7519. The iss (issuer) claim validation within the fast-jwt library permits an array of strings as a valid iss value. This design flaw enables a potential attack where a malicious actor crafts a JWT with an iss claim structured as ['https://attacker-domain/', 'https://valid-iss']. Due to the permissive validation, the JWT will be deemed valid. Furthermore, if the application relies on external libraries like get-jwks that do not independently validate the iss claim, the attacker can leverage this vulnerability to forge a JWT that will be accepted by the victim application. Essentially, the attacker can insert their own domain into the iss array, alongside the legitimate issuer, and bypass the intended security checks. This issue is fixed in 5.0.6.
Configurations

No configuration.

History

15 Apr 2026, 00:35

Type Values Removed Values Added
Summary
  • (es) fast-jwt proporciona una implementación rápida de JSON Web Token (JWT). Antes de la versión 5.0.6, la librería fast-jwt no validaba correctamente la declaración iss según el RFC 7519. La validación de la declaración iss (emisor) dentro de la librería fast-jwt permite una matriz de cadenas como valor iss válido. Esta falla de diseño permite un posible ataque donde un actor malicioso manipula un JWT con una declaración iss estructurada como ['https://attacker-domain/', 'https://valid-iss']. Debido a la validación permisiva, el JWT se considerará válido. Además, si la aplicación utiliza librerías externas como get-jwks, que no validan de forma independiente la declaración iss, el atacante puede aprovechar esta vulnerabilidad para falsificar un JWT que sea aceptado por la aplicación víctima. En esencia, el atacante puede insertar su propio dominio en la matriz iss, junto con el emisor legítimo, y eludir las comprobaciones de seguridad previstas. Este problema se solucionó en la versión 5.0.6.

19 Mar 2025, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-19 16:15

Updated : 2026-04-15 00:35


NVD link : CVE-2025-30144

Mitre link : CVE-2025-30144

CVE.ORG link : CVE-2025-30144


JSON object : View

Products Affected

No product.

CWE
CWE-290

Authentication Bypass by Spoofing

CWE-345

Insufficient Verification of Data Authenticity