---
title: "GHSA-hffm-xvc3-vprc: simple-git is vulnerable to Remote Code Execution"
description: "High severity. simple-git is vulnerable to Remote Code Execution. Affects simple-git; fixed in 3.36.0."
url: https://inlinr.com/advisories/GHSA-hffm-xvc3-vprc
lang: en
---

[Packages](https://inlinr.com/packages) / [simple-git](https://inlinr.com/packages/simple-git) / [Security](https://inlinr.com/packages/simple-git/security)

High Vulnerability GHSA-hffm-xvc3-vprc CVE-2026-6951 Published 25 Apr 2026

# simple-git is vulnerable to Remote Code Execution

Your version 

Affected releases · [simple-git](https://inlinr.com/packages/simple-git)

- 3.x 3.0.1 – 3.35.2 Fixed in 3.36.0
- 2.x and older 0.0.1 – 2.48.0 No fix, no longer updated

On 3.x, the newest line:

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

Every release on a timeline

4.x 

1. Not affected

4.0.0 – 4.1.0  
4 releases, latest

3.x 

1. Affected

3.0.1 – 3.35.2  
51 releases
2. Fixed

3.36.0  
1 release

2.x 

1. Affected

2.0.0 – 2.48.0  
63 releases

1.x 

1. Affected

1.0.0 – 1.132.0  
139 releases

0.x 

1. Affected

0.0.1 – 0.17.0  
20 releases

278 stable releases of simple-git, oldest to newest, one row per major.

## What happens

Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code Execution (RCE) due to an incomplete fix for [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221 "https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221") that blocks the -c option but not the equivalent --config form. If untrusted input can reach the options argument passed to simple-git, an attacker may still achieve remote code execution by enabling protocol.ext.allow=always and using an ext:: clone source.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: high

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:H/​I:H/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-6951 "https://nvd.nist.gov/vuln/detail/CVE-2026-6951")  
nvd.nist.gov/vuln/detail/CVE-2026-6951
- [Fix commit](https://github.com/steveukx/git-js/commit/89a2294febed5dfe737c4c735d936bb6018746a8 "https://github.com/steveukx/git-js/commit/89a2294febed5dfe737c4c735d936bb6018746a8")  
89a2294
- [Reference](https://gist.github.com/KKC73/02d1d97f3410756095b501fda0ac8ca6 "https://gist.github.com/KKC73/02d1d97f3410756095b501fda0ac8ca6")  
gist.github.com/KKC73/02d1d97f3410756095b501fda…
- [Package](https://github.com/steveukx/git-js "https://github.com/steveukx/git-js")  
github.com/steveukx/git-js
- [Reference](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078 "https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078")  
security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
