Vulnerability DatabaseGHSA-hxwm-x553-x359

GHSA-hxwm-x553-x359
JavaScript vulnerability analysis and mitigation

Overview

A command injection vulnerability was discovered in npmcli/git versions prior to 2.0.8, identified as GHSA-hxwm-x553-x359. The vulnerability was reported through the GitHub Bug Bounty Program by @tyage from Ierae Security and was published on July 27, 2021. The issue affected the npm package @npmcli/git and could allow arbitrary shell command execution due to improper argument sanitization when executing Git commands with user-controlled input (GitHub Advisory).

Technical details

The vulnerability stems from npmcli/git passing user-controlled input as arguments to shell commands without proper sanitization. For example, an input like git+https://github.com/npm/git; echo hello world could trigger unauthorized shell execution of the command echo hello world. The vulnerability is classified as CWE-78 (OS Command Injection) and has been assigned a Moderate severity rating (GitHub Advisory).

Impact

The vulnerability enables arbitrary command injection when npmcli/git is executed with untrusted (user-controlled) Git command arguments, potentially allowing attackers to execute unauthorized shell commands on affected systems (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 2.0.8 of npmcli/git. The fix involved removing the use of an intermediate shell for executing Git commands, as implemented in PR #29. Users should upgrade to version 2.0.8 or later to address this security issue (GitHub PR, 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-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react-server-dom-webpack
NoYesDec 03, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025

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