CVE-2026-28292: simple-git Case-Insensitive Protocol Bypass Leading to RCE

simple-git Updated 10 Mar 2026

Summary

10/03/2026
Yes i
Critical
9.8

CVE-2026-28292: The blockUnsafeOperationsPlugin in simple-git fails to block git protocol override arguments when the config key is passed in uppercase or mixed case. Affects simple-git versions >= 3.15.0, < 3.32.3. Fixed in 3.32.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

simple-git is a popular Node.js package that provides a simple interface for executing Git commands. It is widely used in applications that require Git functionalities, such as cloning repositories, fetching updates, and pushing changes. The package includes a plugin designed to block unsafe operations, but it has a critical vulnerability that allows attackers to bypass these protections under certain conditions.

Vulnerability Detail

The vulnerability arises from the blockUnsafeOperationsPlugin in simple-git, which fails to properly validate the case of the 'protocol.allow' configuration key. Git treats configuration keys as case-insensitive, meaning that an attacker can exploit this by passing the key in uppercase or mixed-case formats (e.g., 'PROTOCOL.ALLOW=always'). This allows the attacker to enable the 'ext::' protocol, which can execute arbitrary OS commands on the host machine. The regex used for validation is case-sensitive, leading to a bypass of the intended security measures. The potential ramifications include unauthorized command execution, which could compromise the integrity and security of the host system.

How To Fix

Latest published version: 4.0.2 as of 23 Oct 2026

npm install simple-git@4.0.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.32.3

This is the first release that contains the fix.

npm install simple-git@3.32.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid passing user-controlled values into the 'customArgs' parameter of simple-git methods such as clone, fetch, pull, or push. Ensure that any configuration keys are passed in lowercase to prevent exploitation until the package can be updated.

Conclusion

The CVE-2026-28292 vulnerability in simple-git poses a significant risk due to its potential for arbitrary command execution. It is crucial for developers using this package to update to the patched version and implement best practices to secure their applications against exploitation.

See every vulnerability recorded for simple-git →

Share this vulnerability

FAQ

CVE-2026-28292 is a critical vulnerability in the simple-git package that allows attackers to bypass security checks and execute arbitrary commands on the host machine.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your package-lock.json for vulnerabilities without requiring any signup.

The CVSS score of this vulnerability is 9.8, indicating a critical level of risk associated with potential exploitation.

Update the simple-git package to version 3.32.3 or later to mitigate the vulnerability. Additionally, avoid passing user-controlled arguments to Git commands until the update is applied.

Vulert monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing the package-lock.json file, helping you maintain security without needing direct access to the code.

Related vulnerabilities

Recent vulnerabilities recorded for simple-git.

How To Fix

Latest published version: 4.0.2 as of 23 Oct 2026

npm install simple-git@4.0.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.32.3

This is the first release that contains the fix.

npm install simple-git@3.32.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback