# CVE-2026-6951: steveukx simple-git Remote Code Execution via --config flag injection

Source: https://junglewise.ai/threats/cve-2026-6951-steveukx-simple-git-remote-code-execution-via-config-flag  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-25. Updated: 2026-05-18  
License: CC BY 4.0 with a link back

CVE-2026-6951 · Severity: critical · CVSS 9.8 · Published 2026-04-25

The simple-git library, a popular tool for running Git commands within Node.js applications, is vulnerable to a flaw that allows attackers to execute arbitrary code on the host server. By providing specially crafted input to functions like 'clone', an attacker can bypass security filters to run malicious commands. This could lead to a full system takeover, data theft, or disruption of services.

Technologies: [simple-git (npm)](https://junglewise.ai/threats/technologies/simple-git). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

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

**How severe is CVE-2026-6951?** Critical severity, with a CVSS score of 9.8, published 25 April 2026.

**Which products and versions are affected?** simple-git (npm) SEMVER:introduced=0,fixed=3.36.0.

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

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

**Am I affected by CVE-2026-6951?** Check whether you run simple-git (npm) 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 3.36.0 or later

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


## Technical details

The vulnerability exists in simple-git versions prior to 3.36.0. While a previous fix blocked the '-c' Git option to prevent configuration injection, it failed to block the equivalent '--config' flag. An attacker who can control the options argument passed to functions such as 'clone' can inject '--config protocol.ext.allow=always'. By combining this with an 'ext::' protocol source, the attacker can execute arbitrary shell commands. This is classified as Improper Control of Generation of Code (CWE-94). The issue is resolved in version 3.36.0.

## Affected products

- steveukx simple-git >=3.15.0, <3.36.0

## Identifiers

- CVE-2026-6951
- GHSA-hffm-xvc3-vprc

## Timeline

- 2026-03-07: disclosed: Vulnerability disclosed and introduced in tracking.
- 2026-04-24: advisory: Snyk published the advisory.
- 2026-04-25: patched: Fix released in version 3.36.0.

## References

- [https://gist.github.com/KKC73/02d1d97f3410756095b501fda0ac8ca6](https://gist.github.com/KKC73/02d1d97f3410756095b501fda0ac8ca6)
- [https://github.com/steveukx/git-js/commit/89a2294febed5dfe737c4c735d936bb6018746a8](https://github.com/steveukx/git-js/commit/89a2294febed5dfe737c4c735d936bb6018746a8)
- [https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078)

## Related threats

- [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)
- [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 command injection via option-parsing bypass](https://junglewise.ai/threats/cve-2026-28291-steveukx-simple-git-command-injection-via-option-parsing-bypass)
- [steveukx simple-git remote code execution via case-sensitivity bypass](https://junglewise.ai/threats/cve-2026-28292-steveukx-simple-git-remote-code-execution-via-case-sensitivity)
