User Impersonation Affecting passport-wsfed-saml2 package, versions >=3.0.5 <4.6.4


Severity

Recommended
0.0
high
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 IDSNYK-JS-PASSPORTWSFEDSAML2-10074173
  • published8 May 2025
  • disclosed6 May 2025
  • creditkevinroh-okta

Introduced: 6 May 2025

NewCVE-2025-46573  (opens in a new tab)
CWE-290  (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 User Impersonation via attribute smuggling in the SAML response. An attacker can impersonate any user during SAML authentication by tampering with a valid SAML response and adding attributes to it.

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