CVE-2017-16897: Passport wsfed saml2 Passport-wsfed-saml2 Vulnerable To Signature Bypass Vulnerability
HIGHCVE-2017-16897 is a HIGH (CVSS 8.1) passport-wsfed-saml2 vulnerable to signature bypass vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Passport wsfed saml2 libraries in the npm ecosystem. The issue involves passport-wsfed-saml2 vulnerable to signature bypass in saml2 token. Remediation is available by upgrading affected packages to version 3.0.5.
CVE-2017-16897 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-16897
To remediate this vulnerability, upgrade all affected Passport wsfed saml2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install passport-wsfed-saml2@3.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls passport-wsfed-saml2
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2017-16897, inspect your project dependencies using npm:
npm ls passport-wsfed-saml2
Analyze the terminal output to locate any version of Passport wsfed saml2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.5), your application is affected.
Note: The npm ls passport-wsfed-saml2 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Passport wsfed saml2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-16897 Affected Passport wsfed saml2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
passport-wsfed-saml2
|
npm |
< 3.0.5
|
3.0.5
|
References
Frequently Asked Questions
What is CVE-2017-16897?
Which Passport wsfed saml2 versions are affected?
What version fixes CVE-2017-16897?
Is passport-wsfed-saml2 affected?
What is the CVSS score of CVE-2017-16897?
What CWE is associated with CVE-2017-16897?
How can I check npm dependencies for CVE-2017-16897?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-77fw-rf4v-vfp9",
"modified" : "2023-06-21T22:00:18Z",
"published" : "2023-06-21T22:00:18Z",
"aliases" : [ "CVE-2017-16897" ],
"summary" : "passport-wsfed-saml2 vulnerable to Signature Bypass in SAML2 token",
"details" : "## Information\nPlease note that this is not a new disclosure, and is previously reported in our [SECURITY-NOTICE.md](https://github.com/auth0/passport-wsfed-saml2/commit/520b9fc0bb4249ce83bec47e30153419f086ab70\n) which we removed in favor of github advisory. \n\n# Overview \n This vulnerability allows an attacker to impersonate another user and potentially elevate their privileges if the SAML identity provider:\n\n- signs SAML response and signs assertion\n\n- does not sign SAML response and signs assertion\n\n# Am I affected?\n\nYou may be affected if you use SAML2 protocol with passport-wsfed-saml2 versions below 3.0.5 and your SAML identity Provider: \n1. signs SAML response and signs assertion; or \n2. does not sign SAML response and signs assertion\n\n# How do I fix it?\n\nYou may fix this vulnerability by upgrading your library to version 3.0.5 or above. \n\n# Will the fix impact my users?\nThis fix patches the library that your application runs, but will not impact your users, their current state, or any existing sessions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "passport-wsfed-saml2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/auth0/passport-wsfed-saml2/security/advisories/GHSA-77fw-rf4v-vfp9"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-16897"
}, {
"type" : "WEB",
"url" : "https://github.com/auth0/passport-wsfed-saml2/commit/520b9fc0bb4249ce83bec47e30153419f086ab70"
}, {
"type" : "WEB",
"url" : "https://auth0.com/docs/security/bulletins/cve-2017-16897"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/auth0/passport-wsfed-saml2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-290" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-21T22:00:18Z",
"nvd_published_at" : null
}
}