passport-wsfed-saml2 vulnerable to Signature Bypass in SAML2 token
Information
Please note that this is not a new disclosure, and is previously reported in our SECURITY-NOTICE.md which we removed in favor of github advisory.
Overview
This vulnerability allows an attacker to impersonate another user and potentially elevate their privileges if the SAML identity provider:
-
signs SAML response and signs assertion
-
does not sign SAML response and signs assertion
Am I affected?
You may be affected if you use SAML2 protocol with passport-wsfed-saml2 versions below 3.0.5 and your SAML identity Provider:
- signs SAML response and signs assertion; or
- does not sign SAML response and signs assertion
How do I fix it?
You may fix this vulnerability by upgrading your library to version 3.0.5 or above.
Will the fix impact my users?
This fix patches the library that your application runs, but will not impact your users, their current state, or any existing sessions.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | passport-wsfed-saml2 | < 3.0.5 | 3.0.5 |
References
- https://github.com/auth0/passport-wsfed-saml2/security/advisories/GHSA-77fw-rf4v-vfp9
- https://nvd.nist.gov/vuln/detail/CVE-2017-16897
- https://github.com/auth0/passport-wsfed-saml2/commit/520b9fc0bb4249ce83bec47e30153419f086ab70
- https://auth0.com/docs/security/bulletins/cve-2017-16897
- https://github.com/auth0/passport-wsfed-saml2
- CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-290- Platform
- npm
- Package
passport-wsfed-saml2- Disclosed
- 21.06.2023
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-77fw-rf4v-vfp9 - CC BY 4.0
Vulnerability history: passport-wsfed-saml2
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 5
- First → latest
- 12.2022 05.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 3
- Medium 1
Disclosures per year
- 2022: 1
- 2023: 2
- 2024: 0
- 2025: 2
- 2026: 0
-
passport-wsfed-saml2 vulnerable to Signature Bypass in SAML2 token this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.