Vulnerabilities in pkg:npm/passport-azure-ad
PACKAGECVE-2016-7191 is a HIGH (CVSS 8.1) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Passport azure ad libraries in the npm ecosystem. The issue involves authentication bypass in passport-azure-ad. Remediation is available by upgrading affected packages to version 1.4.6, 2.0.1.
pkg:npm/passport-azure-ad
Vulnerability advisories affecting package pkg:npm/passport-azure-ad. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-73jp-3c67-hjfv | CVE-2016-7191 | HIGH | Authentication Bypass in passport-azure-ad |
CVE-2016-7191 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-2016-7191
To remediate this vulnerability, upgrade all affected Passport azure ad 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-azure-ad@1.4.6
npm install passport-azure-ad@2.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls passport-azure-ad
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2016-7191, inspect your project dependencies using npm:
npm ls passport-azure-ad
Analyze the terminal output to locate any version of Passport azure ad in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.6), your application is affected.
Note: The npm ls passport-azure-ad 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Passport azure ad, 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-2016-7191 Affected Passport azure ad Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
passport-azure-ad
|
npm |
≥ 1.0.0
< 1.4.6
|
1.4.6
|
|
passport-azure-ad
|
npm |
≥ 2.0.0
< 2.0.1
All 1 versions
2.0.0
|
2.0.1
|
References
Frequently Asked Questions
What is CVE-2016-7191?
Which Passport azure ad versions are affected?
What version fixes CVE-2016-7191?
Is passport-azure-ad affected?
What is the CVSS score of CVE-2016-7191?
What CWE is associated with CVE-2016-7191?
How can I check npm dependencies for CVE-2016-7191?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-73jp-3c67-hjfv",
"modified" : "2021-09-02T19:18:46Z",
"published" : "2018-07-26T15:53:31Z",
"aliases" : [ "CVE-2016-7191" ],
"summary" : "Authentication Bypass in passport-azure-ad",
"details" : "Affected versions of `passport-azure-ad` do not recognize the `validateIssuer` setting, which allows remote attackers to bypass authentication via a crafted token.\n\n\n## Recommendation\n\nVersion 1.x: Update to version 1.4.6 or later.\nVersion 2.x: Update to version 2.0.1 or later.",
"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-azure-ad"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.4.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "passport-azure-ad"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.1"
} ]
} ],
"versions" : [ "2.0.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-7191"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/AzureAD/passport-azure-ad"
}, {
"type" : "WEB",
"url" : "https://github.com/AzureAD/passport-azure-ad/blob/master/SECURITY-NOTICE.MD"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-73jp-3c67-hjfv"
}, {
"type" : "WEB",
"url" : "https://support.microsoft.com/en-us/kb/3187742"
}, {
"type" : "WEB",
"url" : "https://support.microsoft.com/kb/3187742"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/151"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/93213"
}, {
"type" : "WEB",
"url" : "http://www.securitytracker.com/id/1036996"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:21:12Z",
"nvd_published_at" : null
}
}