# CVE-2026-102828: simple-git command injection via trailer configuration

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

simple-git is a Node.js library that allows applications to run Git commands. Versions 3.15.0 through 4.0.1 fail to block unsafe Git configuration options, allowing an attacker who can control configuration settings to execute arbitrary shell commands with the privileges of the Node.js process. This can lead to complete system compromise on affected servers.

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

**How severe is CVE-2026-102828?** Critical severity, with a CVSS score of 4, published 29 September 2026.

**Which products and versions are affected?** simple-git (npm) >= 3.15.0, < 4.0.1, SEMVER:introduced=3.15.0,fixed=4.0.1; Steveukx Simple-Git 3.15.0 to 4.0.0.

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

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

**Am I affected by CVE-2026-102828?** 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.1 or later

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


## Technical details

The blockUnsafeOperationsPlugin does not classify trailer.<token>.cmd as an unsafe configuration option, allowing attackers to inject shell commands through SimpleGitOptions.config or inline -c arguments. When git interpret-trailers processes the configured trailer, the injected command executes with the operating-system identity and permissions of the Node.js process. A fix is available in version 4.0.1.

## Affected products

- steveukx simple-git 3.15.0 to 4.0.0

## Identifiers

- CVE-2026-102828
- GHSA-x6jw-m9v5-85vh

## Timeline

- 2026-09-29: disclosed
- 2026-09-25: patched: Fixed in version 4.0.1

## References

- [https://github.com/steveukx/git-js/commit/d762810c13b331ff1e5eb24c0b434646d2a8d1b3](https://github.com/steveukx/git-js/commit/d762810c13b331ff1e5eb24c0b434646d2a8d1b3)
- [https://github.com/steveukx/git-js/pull/1198](https://github.com/steveukx/git-js/pull/1198)

## 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 abbreviated Git options](https://junglewise.ai/threats/cve-2026-102827-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)
