Vulnerabilities in pkg:npm/googleapis

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/googleapis

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/googleapis. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7543-mr7h-6v86 - HIGH Improper Authorization in googleapis

GHSA-7543-mr7h-6v86 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7543-mr7h-6v86
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-285: Improper Authorization
Affected Product Googleapis
Package Ecosystem npm
Published Date
Last Updated

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.

googleapis fixed: 39.1.0
npm install googleapis@39.1.0
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Upgrade to version 39.1.0.

GHSA-7543-mr7h-6v86 Affected Googleapis Versions

1 component(s)
Fixed Versions:
39.1.0
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?
GHSA-7543-mr7h-6v86 is a security vulnerability in Googleapis involving Improper Authorization in googleapis under CWE-285: Improper Authorization.
Which Googleapis versions are affected?
Affected versions include releases prior to 39.1.0 across affected packages: googleapis.
What version fixes GHSA-7543-mr7h-6v86?
Upgrading to 39.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is googleapis affected?
Yes, googleapis is affected in releases prior to 39.1.0. Upgrade your dependency to 39.1.0 or later.
What CWE is associated with GHSA-7543-mr7h-6v86?
GHSA-7543-mr7h-6v86 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for GHSA-7543-mr7h-6v86?
Run the dependency tree command: 'npm ls googleapis'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}