Critical

Passport-wsfed-saml2 allows SAML Authentication Bypass via Signature Wrapping

  • Disclosed: 06.05.2025
  • Updated: 11.10.2026 10:22

Overview

This vulnerability allows an attacker to impersonate any user during SAML authentication by crafting a SAMLResponse. This can be done by using a valid SAML object that was signed by the configured IdP.

Am I Affected?

You are affected by this SAML Signature Wrapping vulnerability if you are using passport-wsfed-saml2 version 4.6.3 or below, specifically under the following conditions:

  1. The service provider is using passport-wsfed-saml2,
  2. A valid SAML document signed by the Identity Provider can be obtained.

Fix

Upgrade to v4.6.4 or greater.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package passport-wsfed-saml2 >= 3.0.5, < 4.6.4 4.6.4

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Weakness (CWE)
CWE-287, CWE-347
Platform
npm
Package
passport-wsfed-saml2
Disclosed
06.05.2025
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-wjmp-wphq-jvqf - CC BY 4.0

Vulnerability history: passport-wsfed-saml2

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
12.2022 05.2025
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 3
  • Medium 1

Disclosures per year

  1. 2022: 1
  2. 2023: 2
  3. 2024: 0
  4. 2025: 2
  5. 2026: 0
  1. Passport-wsfed-saml2 allows SAML Authentication Bypass via Signature Wrapping this entry
    Critical CVE-2025-46572 >= 3.0.5, < 4.6.4 4.6.4
  2. High ghsa-5wrg-8fxp-cx9r < 3.0.10 3.0.10
  3. Medium · 5.3 CVE-2022-23505 < 4.6.3 4.6.3

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.