# CVE-2026-102826: simple-git arbitrary command execution via Git configuration injection

Source: https://junglewise.ai/threats/cve-2026-102826-simple-git-an-interface-for-running-git-commands-in-any-node-js  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-29. Updated: 2026-09-29  
License: CC BY 4.0 with a link back

CVE-2026-102826 · Severity: high · CVSS 8.1 · Published 2026-09-29

simple-git is a Node.js library that allows JavaScript applications to run Git commands programmatically. Versions before 4.0.0 have a security flaw in their configuration validation that allows attackers to inject malicious Git configuration files through custom arguments passed to the clone operation. A loaded malicious configuration can execute arbitrary commands with the privileges of the Node.js process, enabling remote code execution if the application passes unsanitized user input.

Technologies: [simple-git (npm)](https://junglewise.ai/threats/technologies/simple-git), [Steveukx Simple-Git](https://junglewise.ai/threats/technologies/steveukx-simple-git). Vendors: [npm](https://junglewise.ai/threats/vendors/npm), [Steveukx](https://junglewise.ai/threats/vendors/steveukx).

## Quick answers

**Is CVE-2026-102826 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-102826 being exploited in the wild.

**How severe is CVE-2026-102826?** High severity, with a CVSS score of 8.1, published 29 September 2026.

**Which products and versions are affected?** simple-git (npm) <= 3.36.0, SEMVER:introduced=0,fixed=4.0.0; Steveukx Simple-Git before 4.0.0.

**Is there a fix for CVE-2026-102826?** Yes. simple-git (npm): upgrade to 4.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-102826 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-102826?** Check whether you run simple-git (npm) or Steveukx Simple-Git at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- simple-git (npm): upgrade to 4.0.0 or later

  ```sh
  npm install simple-git@4.0.0
  ```


## Technical details

The blockUnsafeOperationsPlugin fails to completely reject include.path and includeIf.<condition>.path configuration options supplied through customArgs to git.clone(), allowing Git to load attacker-controlled configuration files. These configuration files can specify executable Git options like core.sshCommand that are invoked during clone operations with Node.js process privileges. Exploitation requires both attacker-influenced custom arguments and an attacker-controlled file readable by the process; the vulnerability is fixed in version 4.0.0.

## Affected products

- steveukx simple-git before 4.0.0

## Identifiers

- CVE-2026-102826
- GHSA-g4wm-2vf7-vfgr

## Timeline

- 2026-09-29: disclosed
- 2026-09-23: patched: Fixed in version 4.0.0

## References

- [https://github.com/steveukx/git-js/commit/98864c678444d9336357c844efa4fd5a7984c0d7](https://github.com/steveukx/git-js/commit/98864c678444d9336357c844efa4fd5a7984c0d7)
- [https://github.com/steveukx/git-js/pull/1193](https://github.com/steveukx/git-js/pull/1193)

## Related threats

- [simple-git environment variable editor injection in argv-parser](https://junglewise.ai/threats/cve-2026-102829-simple-git-an-interface-for-running-git-commands-in-any-node-js)
- [simple-git command injection via trailer configuration](https://junglewise.ai/threats/cve-2026-102828-simple-git-an-interface-for-running-git-commands-in-any-node-js)
- [simple-git command injection via abbreviated Git options](https://junglewise.ai/threats/cve-2026-102827-simple-git-an-interface-for-running-git-commands-in-any-node-js)
- [steveukx simple-git Remote Code Execution via --config flag injection](https://junglewise.ai/threats/cve-2026-6951-steveukx-simple-git-remote-code-execution-via-config-flag)
- [steveukx simple-git command injection via option-parsing bypass](https://junglewise.ai/threats/cve-2026-28291-steveukx-simple-git-command-injection-via-option-parsing-bypass)
