{"id":"GHSA-wjmp-wphq-jvqf","summary":"Passport-wsfed-saml2 allows SAML Authentication Bypass via Signature Wrapping","details":"### Overview\nThis 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.\n\n### Am I Affected?\nYou 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:\n1. The service provider is using `passport-wsfed-saml2`,\n2. A valid SAML document signed by the Identity Provider can be obtained.\n\n### Fix\nUpgrade to v4.6.4 or greater.","aliases":["CVE-2025-46572"],"modified":"2025-05-06T21:43:47Z","published":"2025-05-06T21:18:43Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2025-05-06T21:18:43Z","nvd_published_at":"2025-05-06T21:16:20Z","cwe_ids":["CWE-287","CWE-347"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://github.com/auth0/passport-wsfed-saml2/security/advisories/GHSA-wjmp-wphq-jvqf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46572"},{"type":"WEB","url":"https://github.com/auth0/passport-wsfed-saml2/commit/e5cf3cc2a53748207f7a81bfba9195c8efa94181"},{"type":"PACKAGE","url":"https://github.com/auth0/passport-wsfed-saml2"}],"affected":[{"package":{"name":"passport-wsfed-saml2","ecosystem":"npm","purl":"pkg:npm/passport-wsfed-saml2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.5"},{"fixed":"4.6.4"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 4.6.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-wjmp-wphq-jvqf/GHSA-wjmp-wphq-jvqf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}