Improper Authentication Affecting passport-wsfed-saml2 package, versions >=3.0.5 <4.6.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (20th 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 Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PASSPORTWSFEDSAML2-10074176
  • published8 May 2025
  • disclosed6 May 2025
  • creditUnknown

Introduced: 6 May 2025

NewCVE-2025-46572  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade passport-wsfed-saml2 to version 4.6.4 or higher.

Overview

passport-wsfed-saml2 is a SAML2 Protocol and WS-Fed library.

Affected versions of this package are vulnerable to Improper Authentication via the SAMLResponse handling process. An attacker can impersonate any user during the authentication process by crafting a SAMLResponse using a valid SAML object that was signed by the configured IdP.

Note:

This is only exploitable if the following conditions are met:

  1. Your service provider uses passport-wsfed-saml2.

  2. A valid SAML Response, signed by the Identity Provider, can be obtained.

References

CVSS Base Scores

version 4.0
version 3.1