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.
Published here · 3 sources · Resume reading
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, Patch stimulus-bridge build RCE to 4.0.3 and What is Git?. Browse the Security topic.
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 [email protected] 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:
npm ls simple-git @simple-git/argv-parserYou 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.
Keep this guide
Questions about this guide
Which simple-git version is safe?
Raise simple-git to 4.1.0 or newer. The matching argv-parser floor is @simple-git/argv-parser 3.0.0. Both appear on the 2026-11-16 release notes.
What does CVE-2026-134815 cover?
GHSA-24pq-g7mp-w876 says simple-git before 4.1.0 lets attackers bypass allowUnsafePack by supplying --exec on non-push git operations. Influenced listRemote() or raw() arguments can inject --exec for ls-remote, archive, fetch-pack or send-pack.
How severe is it?
The GitHub Advisory Database lists Critical severity with a CVSS overall score of 9.2 for CVE-2026-134815 / GHSA-24pq-g7mp-w876.
Why does allowUnsafePack matter?
In 4.1.0, allowUnsafePack blocks --exec for every command other than rebase. Before that, the guard covered push only, so other operations stayed open.
Sources
- [email protected] release notesgithub.com
- @simple-git/[email protected] releasegithub.com