CVE-2025-54369
JSON

9.3critical

Node-SAML SAML Authentication Bypass

Severity
9.3critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.44% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m837-g268-mmv7

Description

Node-SAML is a SAML library not dependent on any frameworks that runs in Node. In versions 5.0.1 and below, Node-SAML loads the assertion from the (unsigned) original response document. This is different than the parts that are verified when checking signature. This allows an attacker to modify authentication details within a valid SAML assertion. For example, in one attack it is possible to remove any character from the SAML assertion username. This issue is fixed in version 5.1.0.

Affected

Product or packageVersionsReported by
node-saml node-saml< 5.1.0CVE List
node-saml (npm)up to 3.1.2GitHub Advisory Database
@node-saml/node-saml (npm)before 5.1.0GitHub Advisory Database

All scores

GitHub_M9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Classification

CWE-87CWE-287CWE-347

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Node-SAML is a SAML library not dependent on any frameworks that runs in Node. In versions 5.0.1 and below, Node-SAML loads the assertion from the (unsigned) original response document. This is different than the parts that are verified when checking signature. This allows an attacker to modify authentication details within a valid SAML assertion. For example, in one attack it is possible to remove any character from the SAML assertion username. This issue is fixed in version 5.1.0.

GitHub Advisory Database

Node-SAML loads the assertion from the (unsigned) original response document. This is different than the parts that are verified when checking signature.

This allows an attacker to modify authentication details within a valid SAML assertion. For example, in one attack it is possible to remove any character from the SAML assertion username.

To conduct the attack an attacker would need a validly signed document from the identity provider (IdP).

In fixing this we upgraded xml-crypto to v6.1.2 and made sure to process the SAML assertions from only verified/authenticated contents. This will prevent future variants from coming up.

NVD (es)

Node-SAML es una biblioteca SAML no dependiente de ningún framework que se ejecuta en Node. En las versiones 5.0.1 e inferiores, Node-SAML carga la aserción del documento de respuesta original (sin firmar). Esto es diferente de las partes que se verifican al comprobar la firma. Esto permite a un atacante modificar los detalles de autenticación dentro de una aserción SAML válida. Por ejemplo, en un ataque es posible eliminar cualquier carácter del nombre de usuario de la aserción SAML. Este problema está solucionado en la versión 5.1.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-54369 changed 2026-05-07CVE Terms of Use
GitHub Advisory DatabaseGHSA-m837-g268-mmv7 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-54369 changed 2026-11-07Public domain