{"id":"CVE-2025-46573","aliases":["CVE-2025-46573","GHSA-8gqj-226h-gm8r"],"related":[],"kind":"vulnerability","state":"published","title":"passport-wsfed-saml2 Has SAML Authentication Bypass via Attribute Smuggling","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Overview\nThis vulnerability 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.\n\n### Am I Affected?\nYou are affected by this SAML Attribute Smuggling 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 Response signed by the Identity Provider can be obtained\n\n### Fix\nUpgrade to v4.6.4 or greater.","format":"markdown","source":"ghsa"},{"lang":"es","text":"passport-wsfed-saml2 proporciona una estrategia de pasaporte para los protocolos WS-fed y SAML2. Una vulnerabilidad, presente desde la versión 3.0.5 hasta la 4.6.3 incluida, permite a un atacante suplantar la identidad de cualquier usuario durante la autenticación SAML alterando una respuesta SAML válida. Esto se puede lograr añadiendo atributos a la respuesta. Los usuarios se ven afectados específicamente cuando el proveedor de servicios utiliza `passport-wsfed-saml2` y se puede obtener una respuesta SAML válida firmada por el proveedor de identidad. La versión 4.6.4 contiene una corrección para esta vulnerabilidad.","source":"nvd"}],"published":"2025-05-06T20:22:00.104Z","modified":"2026-06-17T09:26:38.853Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-287","CWE-290"],"affected":[{"ranges":[{"version":">= 3.0.5, < 4.6.4","status":"affected"}],"vendor":"auth0","product":"passport-wsfed-saml2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.5","status":"affected","fixed":"4.6.4"}],"ecosystem":"npm","package":"passport-wsfed-saml2","purl":"pkg:npm/passport-wsfed-saml2","source":"ghsa"}],"references":[{"url":"https://github.com/auth0/passport-wsfed-saml2/security/advisories/GHSA-8gqj-226h-gm8r","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/auth0/passport-wsfed-saml2/commit/e5cf3cc2a53748207f7a81bfba9195c8efa94181","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46573","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/auth0/passport-wsfed-saml2","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-07T13:46:09.234Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-46573","url":"https://www.cve.org/CVERecord?id=CVE-2025-46573","licence":"CVE Terms of Use","modified":"2025-05-07T15:34:04.601Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8gqj-226h-gm8r","url":"https://github.com/advisories/GHSA-8gqj-226h-gm8r","licence":"CC-BY-4.0","modified":"2025-05-07T15:34:30.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-46573","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46573","licence":"Public domain","modified":"2026-06-17T09:26:38.853Z"}],"updatedAt":"2026-11-25T22:58:57.672Z","epss":{"score":0.00388,"percentile":0.35054,"date":"2026-12-01T12:00:22.000Z"}}