Arbitrary Command Injection Affecting simple-git package, versions <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.36% (28th 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 Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SIMPLEGIT-20335524
  • published30 Sept 2026
  • disclosed29 Sept 2026
  • creditanir0y

Introduced: 29 Sep 2026

NewCVE-2026-102827  (opens in a new tab)
CWE-77  (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 Arbitrary Command Injection via the blockUnsafeOperationsPlugin, which fails to block dangerous git options (such as --upload-pack, --receive-pack, and --exec) when abbreviated forms of those options are supplied by an attacker. An attacker who can influence the arguments passed to git commands can bypass the plugin's protections and achieve remote code execution.

Note: This is only exploitable when the consumer has not opted in via unsafe:{allowUnsafePack:true}, meaning the plugin is active but can be bypassed through abbreviated option names.

CVSS Base Scores

version 4.0
version 3.1