# Patch simple-git --exec injection (CVE-2026-134815)

> Raise simple-git to 4.1.0 and argv-parser to 3.0.0 so --exec cannot bypass allowUnsafePack.

Source: https://fullbytedeveloper.com/blog/patch-simple-git-exec-injection
Published here: 2026-11-25

`simple-git` before 4.1.0 has an argument injection path tracked as CVE-2026-134815 (GHSA-24pq-g7mp-w876). Attackers who influence arguments to `listRemote()` or `raw()` can inject `--exec` on non-push operations and run commands on the host. Floor the package at 4.1.0 and `@simple-git/argv-parser` at 3.0.0. [1][2][3]

Related reading: [Refuse fake Claude npm packages](/blog/refuse-fake-claude-npm-packages), [Patch stimulus-bridge build RCE to 4.0.3](/blog/patch-stimulus-bridge-build-rce) and [What is Git?](/blog/what-is-git). Browse the [Security topic](https://fullbytedeveloper.com/blog/topic/security).

## Confirm the CVE and the GHSA

GHSA-24pq-g7mp-w876 was published to the GitHub Advisory Database on 2026-11-23. The advisory description says `simple-git` before 4.1.0 contains an argument injection vulnerability that bypasses the `allowUnsafePack` guard when `--exec` is supplied to non-push git operations. Attackers who influence arguments passed to `listRemote()` or `raw()` can inject `--exec` for `ls-remote`, `archive`, `fetch-pack` or `send-pack` to execute commands on the host. Severity: Critical, CVSS overall score 9.2. CVE ID: CVE-2026-134815. [1]

## Raise simple-git and argv-parser

The `simple-git@4.1.0` release (2026-11-16) states that `allowUnsafePack` now blocks `--exec` for every command other than `rebase`, because `--exec` names the remote program for `push`, `send-pack`, `fetch-pack`, `archive --remote` and `ls-remote` (previously only `push`). That release also updates `@simple-git/argv-parser` to 3.0.0. [2][3]

Confirm what your tree resolves:

```bash
npm ls simple-git @simple-git/argv-parser
```

You should see `simple-git` at 4.1.0 or newer and `@simple-git/argv-parser` at 3.0.0 or newer. If a transitive dependency still pins an older floor, fix that lockfile entry before the next CI run. [2][3]

## Treat influenced git arguments as untrusted

Any code path that builds `listRemote()` or `raw()` arguments from user input, a webhook, a ticket field or an AI tool suggestion is in scope for this advisory. Do not assume "we never call push" is enough: the advisory names non-push operations. [1]

Keep CVE-2026-134815 / GHSA-24pq-g7mp-w876 and floors 4.1.0 / 3.0.0 on the same change ticket so a reviewer does not close after reading only the package name.

Your next CI install should resolve above those floors, or the job should fail the dependency check.

Send this to the teammate who said "npm audit sometime" without writing floor 4.1.0 down.

## Sources

1. [GitHub Advisory Database: GHSA-24pq-g7mp-w876 (CVE-2026-134815)](https://github.com/advisories/GHSA-24pq-g7mp-w876)
2. [simple-git@4.1.0 release notes](https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0)
3. [@simple-git/argv-parser@3.0.0 release](https://github.com/steveukx/git-js/releases/tag/%40simple-git%2Fargv-parser%403.0.0)
