GHSA-7543-mr7h-6v86: Googleapis Improper Authorization Vulnerability
HIGHGHSA-7543-mr7h-6v86 is a HIGH improper authorization vulnerability (CWE-285: Improper Authorization) affecting Googleapis libraries in the npm ecosystem. The issue involves improper authorization in googleapis. Remediation is available by upgrading affected packages to version 39.1.0.
GHSA-7543-mr7h-6v86 at a Glance
How to Fix GHSA-7543-mr7h-6v86
To remediate this vulnerability, upgrade all affected Googleapis 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 googleapis@39.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls googleapis
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-7543-mr7h-6v86, inspect your project dependencies using npm:
npm ls googleapis
Analyze the terminal output to locate any version of Googleapis in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 39.1.0), your application is affected.
Note: The npm ls googleapis 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-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Googleapis, 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
GHSA-7543-mr7h-6v86 Affected Googleapis Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
googleapis
|
npm |
< 39.1.0
|
39.1.0
|
References
Frequently Asked Questions
What is GHSA-7543-mr7h-6v86?
Which Googleapis versions are affected?
What version fixes GHSA-7543-mr7h-6v86?
Is googleapis affected?
What CWE is associated with GHSA-7543-mr7h-6v86?
How can I check npm dependencies for GHSA-7543-mr7h-6v86?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7543-mr7h-6v86",
"modified" : "2021-09-27T16:15:52Z",
"published" : "2020-09-02T16:00:26Z",
"aliases" : [ ],
"summary" : "Improper Authorization in googleapis",
"details" : "Versions of `googleapis` prior to 39.1.0 are vulnerable to Improper Authorization. Setting credentials to one client may apply to all clients which may cause requests to be sent with the incorrect credentials.\n\n\n## Recommendation\n\nUpgrade to version 39.1.0.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "googleapis"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "39.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/googleapis/google-api-nodejs-client/issues/1594"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/googleapis/google-api-nodejs-client"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/791"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:35:54Z",
"nvd_published_at" : null
}
}