CVE-2025-54419

10.0

node-saml · node-saml

Node-SAML version 5.0.1 improperly verifies cryptographic signatures, allowing attackers to modify authentication details within a valid SAML assertion.

Executive summary

A critical authentication bypass vulnerability in the node-saml library allows unauthenticated attackers to modify SAML assertions and manipulate user identity data.

Vulnerability

This vulnerability involves the improper verification of cryptographic signatures (CWE-347) and improper authentication (CWE-287). The library incorrectly loads assertions from unsigned portions of a response document, which allows an unauthenticated attacker to alter authentication details while maintaining a validly signed document from the identity provider.

Business impact

The ability to modify SAML assertions poses a severe risk to organizational identity and access management systems. By manipulating authentication tokens, an attacker could escalate privileges or impersonate legitimate users, leading to unauthorized access to sensitive corporate resources. With a CVSS score of 10.0, this flaw represents the highest level of risk to confidentiality and integrity.

Remediation

Immediate Action: Update the node-saml library to version 5.1.0 or later to ensure proper signature verification. For users of passport-saml, transition to the @node-saml/passport-saml package which contains the necessary security fixes.

Proactive Monitoring: Review authentication logs for anomalous patterns, such as unexpected identity shifts or account attribute changes that deviate from standard identity provider assertions.

Compensating Controls: While no direct WAF rule can fix this logic flaw, ensure that all SAML-based authentication flows are strictly monitored and that service providers strictly validate the entire SAML response structure rather than relying solely on individual assertion components.

Exploitation status

Public Exploit Available: No confirmed public exploit exists.

Analyst recommendation

This vulnerability is critical because it undermines the fundamental trust relationship between identity providers and service providers. Organizations utilizing node-saml must prioritize this update in their next maintenance cycle, as the flaw is highly automatable and allows for significant identity manipulation. Failure to patch will leave authentication mechanisms vulnerable to sophisticated impersonation attacks.

History

  1. Disclosed CVE record published
  2. Published in the daily brief critical section
  3. Look Back published
  4. Analyst report written
  5. Fix documented version 5.1.0 per OSV.dev

Sources