Vulnerability DatabaseGHSA-7543-mr7h-6v86

GHSA-7543-mr7h-6v86
JavaScript vulnerability analysis and mitigation

Overview

A high-severity improper authorization vulnerability was identified in the googleapis npm package versions prior to 39.1.0. The vulnerability was discovered in February 2019, published to the GitHub Advisory Database on September 2, 2020, and last updated on January 9, 2023. The issue is tracked as GHSA-7543-mr7h-6v86 and is classified under CWE-285 (Improper Authorization) (GitHub Advisory).

Technical details

The vulnerability stems from a design flaw where setting credentials on any auth client used in a GoogleApi instance affects all other clients due to the use of GoogleAuth as a singleton. When credentials are set for one client, they may be inadvertently applied to all clients within the same event loop, potentially causing requests to be sent with incorrect credentials (GitHub Issue).

Impact

The vulnerability can lead to requests being made with incorrect credentials, potentially exposing sensitive information or allowing unauthorized access to resources. In situations where interleaving execution of the googleapis module occurs, the behavior can produce hazardous results as the last set credentials are used for all subsequent requests regardless of the intended authorization (GitHub Issue).

Exploitability

The vulnerability can be triggered in scenarios where multiple clients are created and used within the same event loop. The issue becomes particularly problematic in concurrent operations where different authorization credentials are being set and used (GitHub Issue).

Mitigation and workarounds

Users are strongly recommended to upgrade to version 39.1.0 or later of the googleapis package, which contains the fix for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-43309HIGH7.5
  • JavaScript logoJavaScript
  • uri-template-lite
NoYesAug 24, 2022
CVE-2022-24375HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 24, 2022
CVE-2022-25231HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-21208HIGH7.5
  • JavaScript logoJavaScript
  • node-opcua
NoYesAug 23, 2022
CVE-2022-2932MEDIUM6.1
  • JavaScript logoJavaScript
  • mobiledoc-kit
NoYesAug 22, 2022

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management