Command Injection Affecting simple-git package, versions <3.32.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SIMPLEGIT-16032290
  • published15 Apr 2026
  • disclosed13 Apr 2026
  • creditjuhwisang

Introduced: 13 Apr 2026

NewCVE-2026-28291  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade simple-git to version 3.32.0 or higher.

Overview

simple-git is a light weight interface for running git commands in any node.js application.

Affected versions of this package are vulnerable to Command Injection through improper option parsing in the clone method. An attacker can execute arbitrary system commands by supplying specially crafted command-line options that bypass intended security checks.

Note:

  1. This is only exploitable if the attacker can control the options passed to the underlying process.

  2. This vulnerability was introduced by an incorrect patch for CVE-2022-25860

CVSS Base Scores

version 4.0
version 3.1