CVE-2025-46573 passport-wsfed-saml2 Has SAML Authentication Bypass via Attribute Smuggling
Attackers can impersonate users by tampering with SAML responses in passport-wsfed-saml2, leading to account takeover.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-46573?
CVE-2025-46573 is a high-severity authentication bypass vulnerability in auth0 passport-wsfed-saml2, published on 6 May 2025. Any signed-in user can exploit it over the network, 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 tampering with a valid SAML response. This can be done by adding attributes to the response. Users are affected specifically when the service provider is using `passport-wsfed-saml2` and a valid SAML Response 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-46573?
2 open source packages ship an affected version, including passport-wsfed-saml2.
| Package | Affected | Fixed in |
|---|---|---|
passport-wsfed-saml2 npm | From 3.0.5 | 4.6.4 |
passport-wsfed-saml2 npm | From 3.0.5 | 4.6.4 |
How do I fix CVE-2025-46573?
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-46573 being exploited?
There is no known exploitation of CVE-2025-46573 in the wild and no public exploit code.
Sources
Also known as GHSA-8gqj-226h-gm8r.