CVE-2026-134815: simple-git Flaw Lets Attackers Run Code

A widely used JavaScript library for running Git commands from code has a flaw that lets an attacker run commands on the host machine, and the fix is a version upgrade. The vulnerability, tracked as CVE-2026-134815, affects simple-git before version 4.1.0. GitHub published the security advisory on 23 November 2026, and the flaw is rated critical, with a score of 9.2 out of 10 under version 4.0 of the CVSS scoring system, or 8.1 under version 3.1.
simple-git is a popular open-source package that lets Node.js applications run Git commands, such as cloning repositories, listing remote branches and fetching updates, without calling Git by hand. It is the kind of dependency that sits deep inside developer tools, build systems and web applications, often pulled in indirectly through another package. That reach is what makes the flaw worth patching promptly, even though exploiting it needs a specific set of conditions.
How the flaw works
The weakness is an argument injection flaw, classified as CWE-88. simple-git's listRemote() and raw() functions pass arguments through to Git commands, and the flaw lets an attacker who can influence those arguments inject the --exec option into operations that are not supposed to allow it, such as ls-remote, archive, fetch-pack and send-pack. That bypasses the library's allowUnsafePack guard, a check meant to stop dangerous Git pack operations from running without explicit permission, and the injected option makes Git execute commands on the host.
The attack needs no login and no click from a user: the CVSS record lists no privileges required and no user interaction. It does need the attacker to control, or partly control, the arguments that reach one of the affected functions, and the scoring records attack complexity as high. In practice that means applications that pass user-influenced input, such as a repository address, a branch name or a raw argument, into simple-git calls are the ones at risk, while code that only ever passes fixed strings is not exposed through this flaw.
What is affected and what to do
All versions of simple-git before 4.1.0 are affected, along with versions of its companion package @simple-git/argv-parser before 3.0.0. The fix is in simple-git 4.1.0 and @simple-git/argv-parser 3.0.0. Developers should upgrade both, and check lockfiles and dependency trees, since the library is often installed indirectly and an old copy can survive inside another package's dependencies.
No exploitation in the wild has been confirmed. But vulnerability trackers listed a public proof-of-concept for the flaw by 23 November, and the US National Vulnerability Database updated its record for the CVE the same day, so the window for quiet patching is short. Until the upgrade is in place, applications should not pass untrusted input into listRemote() or raw(), and Git operations should run with the least privilege the job allows.
The flaw was reported by VulnCheck, and the CVE record is published with the library's own maintainer as the numbering authority. The pattern is a familiar one for widely used libraries: a small input-handling gap in a trusted helper becomes a route to full command execution on any host that uses it carelessly.