CVE-2026-102826: simple-git Command Execution Vulnerability via Unblocked Git Configuration Includes

simple-git Updated 06 Oct 2026

Summary

05/10/2026
Yes i
High
8.1

CVE-2026-102826: simple-git allows command execution through unblocked Git configuration includes. Affects simple-git versions < 4.0.0. Fixed in 4.0.0. 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 library that provides an interface for executing Git commands in a simple and efficient manner. It is widely used in CI/CD systems, GitHub Actions, and various development tools to automate Git operations. However, a critical vulnerability has been identified in version 3.36.0, which allows attackers to execute arbitrary commands through unblocked Git configuration includes.

Vulnerability Detail

The vulnerability arises from an OS command injection flaw in the git.clone() function. It allows any application that passes attacker-influenced data into the customArgs parameter to execute arbitrary code. The issue is due to the absence of an entry for 'include.path' in the denylist of the blockUnsafeOperationsPlugin. By using the '-c include.path=<file>' argument, an attacker can load a malicious local file as a git configuration, which can then set the core.sshCommand to execute arbitrary commands during the next remote operation. This vulnerability can lead to pre-authentication remote code execution (RCE) in systems that flow untrusted data into customArgs.

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

4.0.0

This is the first release that contains the fix.

npm install simple-git@4.0.0

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

Workaround

As a temporary workaround, avoid using the '-c' or '--config' options in the customArgs parameter. Instead, utilize the typed config option provided by simple-git, which is safer and does not allow arbitrary command execution.

Conclusion

The simple-git package has a critical vulnerability (CVE-2026-102826) that allows for command execution through unblocked Git configuration includes. It is essential to update to version 4.0.0 or later to mitigate this risk. Users should also be cautious about passing untrusted data into the customArgs parameter.

See every vulnerability recorded for simple-git →

Share this vulnerability

FAQ

CVE-2026-102826 is a vulnerability in the simple-git package that allows for OS command injection through unblocked Git configuration includes.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your package-lock.json without any signup.

The vulnerability can lead to pre-authentication remote code execution, allowing attackers to execute arbitrary commands on the server running the vulnerable application.

If immediate updates are not possible, refrain from using the '-c' or '--config' options in customArgs and consider implementing input validation to prevent untrusted data from being passed.

The CVSS score of this vulnerability is 8.1, indicating a high severity level.

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

4.0.0

This is the first release that contains the fix.

npm install simple-git@4.0.0

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