Improper Verification of Cryptographic Signature Affecting @node-saml/node-saml package, versions <5.0.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Verification of Cryptographic Signature vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-NODESAMLNODESAML-11172934
  • published29 Jul 2025
  • disclosed28 Jul 2025
  • creditahacker1-securesaml

Introduced: 28 Jul 2025

CVE-2025-54419  (opens in a new tab)
CWE-287  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade @node-saml/node-saml to version 5.0.1 or higher.

Overview

@node-saml/node-saml is a SAML 2.0 implementation for Node.js

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via validatePostResponseAsync due to loading of the assertion from the unsigned original response document. An attacker can alter authentication details, such as modifying the username in a valid SAML assertion.

Notes:

  1. This is only exploitable if the attacker possesses a validly signed SAML response from the IdP.

  2. This differs from the xml-crypto-related CVE-2025-54369

References

CVSS Base Scores

version 4.0
version 3.1