{"id":"CVE-2025-54419","published":"2025-07-28T19:47:46Z","modified":"2025-07-28T20:39:07Z","title":"Node-SAML Contains SAML Signature Verification Vulnerability","vendor":"node-saml","product":"node-saml","tier":"tail","description":{"text":"A SAML library not dependent on any frameworks that runs in Node. In version 5.0.1, 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). This is fixed in version 5.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00648,"percentile":0.45722,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/node-saml/node-saml/security/advisories/GHSA-4mxg-3p6v-xgq3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/node-saml/node-saml/commit/31ead9411ebc3e2385086fa9149b6c17732bca10","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-saml/node-saml/releases/tag/v5.1.0","tags":["x_refsource_MISC"]}],"priority":{"score":16.1,"factors":[{"name":"EPSS percentile","points":9.14},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"node-saml","affectedVersions":[{"vendor":"node-saml","product":"node-saml","versions":["= 5.0.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-07-28T20:22:05.293397Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@node-saml/node-saml","vulnerableRanges":["<5.1.0"],"patched":["5.1.0"],"from":["GHSA-4mxg-3p6v-xgq3"],"provenance":"source"},{"ecosystem":"npm","package":"passport-saml","vulnerableRanges":["<=3.2.4"],"patched":[],"from":["GHSA-4mxg-3p6v-xgq3"],"provenance":"source"},{"ecosystem":"npm","package":"@node-saml/passport-saml","vulnerableRanges":["<5.1.0"],"patched":["5.1.0"],"from":["GHSA-4mxg-3p6v-xgq3"],"provenance":"source"}],"summary":{"text":"The node-saml library, a framework-independent SAML implementation for Node.js, contains a flaw in version 5.0.1 where the authentication assertion is read from the unsigned original response document rather than from the portion whose signature is verified. An attacker with network access and no credentials, who already holds a validly signed document from the identity provider, can modify authentication details such as the username within the assertion, for example by removing characters, without invalidating the signature.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:41Z"},"euvd":{"id":"EUVD-2025-22950","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-node-saml-cve-2022-39300","parents":[{"from":"CVE-2022-39300","to":"CVE-2025-54419","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/c1f275c289c01921e58f5c70ce0fdbc5287e5fbe","https://github.com/node-saml/node-saml/commit/31ead9411ebc3e2385086fa9149b6c17732bca10"],"basis":"shared function","functions":["SAML"]},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2023-40178","to":"CVE-2025-54419","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/saml.ts"],"commits":["https://github.com/node-saml/node-saml/commit/045e3b9c54211fdb95f96edf363679845b195cec","https://github.com/node-saml/node-saml/commit/31ead9411ebc3e2385086fa9149b6c17732bca10"],"basis":"shared function","functions":["SAML"]}]}]}}