CVE-2025-46572 passport-wsfed-saml2 Has SAML Authentication Bypass via Signature Wrapping

Critical 9.3 Published Updated

Attackers can impersonate users during SAML authentication by exploiting signature wrapping flaws in the passport-wsfed-saml2 library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-46572?

CVE-2025-46572 is a critical authentication bypass vulnerability in auth0 passport-wsfed-saml2, published on 6 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

passport-wsfed-saml2 provides passport strategy for both WS-fed and SAML2 protocol. A vulnerability present starting in version 3.0.5 up to and including version 4.6.3 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. Users are affected specifically when the service provider is using passport-wsfed-saml2 and a valid SAML document signed by the Identity Provider can be obtained. Version 4.6.4 contains a fix for the vulnerability.

Weakness: CWE-287

Which versions are affected by CVE-2025-46572?

2 open source packages ship an affected version, including passport-wsfed-saml2.

PackageAffectedFixed in
passport-wsfed-saml2 npmFrom 3.0.54.6.4
passport-wsfed-saml2 npmFrom 3.0.54.6.4

How do I fix CVE-2025-46572?

Upgrade passport-wsfed-saml2 to 4.6.4 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2025-46572 being exploited?

There is no known exploitation of CVE-2025-46572 in the wild and no public exploit code.

Sources

Also known as GHSA-wjmp-wphq-jvqf.

Is CVE-2025-46572 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free