Loading...
Skip to main content

CVE-2025-54419 — Vulnerability in @node-saml/node-saml — CVE Details

CRITICAL

Node-SAML SAML Signature Verification Vulnerability

Published July 28, 2025Updated August 8, 2025Source: osv

Summary

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 made sure to process the SAML assertions from only verified/authenticated contents. This will prevent future variants from coming up. Note: this is distinct from the previous xml-crypto CVEs.

Advisory Timeline

  • First published July 28, 2025 (441 days ago).
  • Last revised August 8, 2025 — 11 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @node-saml/node-saml to 5.1.0 or later
npm install @node-saml/node-saml@5.1.0
npm
Update @node-saml/passport-saml to 5.1.0 or later
npm install @node-saml/passport-saml@5.1.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: npm (3).

PackageEcosystemAffectedFixed In
@node-saml/node-saml
npm
All versions5.1.0
passport-saml
npm
All versionsRange-based data available
@node-saml/passport-saml
npm
All versions5.1.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-287
    Improper AuthenticationMITRE
  • CWE-347
    Improper Verification of Cryptographic SignatureMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2025-54419?
Node-SAML SAML Signature Verification Vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
How do I check if my project is affected by CVE-2025-54419?
CVE-2025-54419 affects @node-saml/node-saml, passport-saml and @node-saml/passport-saml. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-54419 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
10.0

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-4mxg-3p6v-xgq3

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies