Command Injection Affecting simple-git package, versions >=3.15.0 <4.0.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.28% (18th percentile)

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-20335531
  • published30 Sept 2026
  • disclosed29 Sept 2026
  • creditsec-reex

Introduced: 29 Sep 2026

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

How to fix?

Upgrade simple-git to version 4.0.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 via the rebase command handler and the trailer.<token>.cmd/trailer.<token>.command configuration keys, which allow an attacker to inject the -x/--exec flag or a shell-executable trailer command into a spawned Git process. An attacker who can influence the arguments or configuration passed to simple-git can achieve arbitrary command execution on the host system.

CVSS Base Scores

version 4.0
version 3.1