# CVE-2026-102827: simple-git command injection via abbreviated Git options

Source: https://junglewise.ai/threats/cve-2026-102827-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-102827 · Severity: high · CVSS 8.1 · Published 2026-09-29

simple-git is a Node.js library that allows JavaScript applications to execute Git commands. Versions before 4.0.0 fail to detect abbreviated Git command-line options (like --receive-pack shortened to --receive-pa), allowing attackers to bypass safety checks and inject arbitrary commands through user-controlled arguments. An attacker who can influence push or clone arguments could execute malicious code on a target system.

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-102827 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-102827 being exploited in the wild.

**How severe is CVE-2026-102827?** 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-102827?** 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-102827 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-102827?** 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 performs literal string matching on Git options but does not account for Git's support of unambiguous long-option abbreviations. Attackers can bypass detection by using shortened forms of dangerous options like --receive-pack or --exec, reaching git push with a local/file remote or attacker-controlled receive-pack target, leading to arbitrary command execution. The vulnerability requires attacker influence over push arguments; it is fixed in version 4.0.0 through strict abbreviation blocking.

## Affected products

- steveukx simple-git before 4.0.0

## Identifiers

- CVE-2026-102827
- GHSA-858h-whjf-mvg5

## Timeline

- 2026-09-29: disclosed: CVE-2026-102827 published
- 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 arbitrary command execution via Git configuration injection](https://junglewise.ai/threats/cve-2026-102826-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)
