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 package | Versions | Reported by |
|---|---|---|
| node-saml node-saml | < 5.1.0 | CVE List |
| node-saml (npm) | up to 3.1.2 | GitHub Advisory Database |
| @node-saml/node-saml (npm) | before 5.1.0 | GitHub Advisory Database |
All scores
| GitHub_M | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | critical CVSS:4.0 | CVSS: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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-54369 changed 2026-05-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m837-g268-mmv7 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-54369 changed 2026-11-07 | Public domain |