CVE-2022-25900
JavaScript vulnerability analysis and mitigation

Overview

The git-clone npm package (all versions) contains a Command Injection vulnerability (CVE-2022-25900) due to insecure usage of the --upload-pack feature of git. This vulnerability was discovered and disclosed on March 28, 2022, and published on June 28, 2022. The package receives approximately 230,000 downloads per week, making this a significant security concern (GitHub PoC, Snyk Report).

Technical details

The vulnerability stems from improper handling of user input in the git-clone package. The source code attempts to mitigate user input concatenation by adding arguments to the command being executed before adding a double dash, but this implementation is flawed. When user-controlled options are provided to the clone() function through the options.args array, attackers can inject commands that will be executed during the cloning process. The vulnerability has been assigned a CVSS base score of 8.1 (High) by Snyk, with critical impacts on confidentiality, integrity, and availability (Snyk Report).

Impact

The vulnerability allows attackers to execute arbitrary commands on the operating system where the git-clone package is being used. This can lead to a total loss of confidentiality, integrity, and availability of the affected system. An attacker can potentially access restricted information, modify protected files, and cause denial of service conditions (Snyk Report).

Mitigation and workarounds

There is no fixed version available for the git-clone package. As a workaround, the package maintainers have added a note to the README file advising users to only use the args option with static/trusted input (Snyk Report).

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-2026-23744CRITICAL9.8
  • JavaScriptJavaScript
  • @mcpjam/inspector
NoYesJan 16, 2026
CVE-2026-23735HIGH8.7
  • JavaScriptJavaScript
  • graphql-modules
NoYesJan 16, 2026
GHSA-gw32-9rmw-qwwwHIGH8.4
  • JavaScriptJavaScript
  • svelte
NoYesJan 16, 2026
CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • argo-workflows-fips-3.6
NoYesJan 16, 2026
GHSA-38cw-85xc-xr9xMEDIUM6.8
  • JavaScriptJavaScript
  • @veramo/data-store
NoYesJan 16, 2026

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