A critical simple-git vulnerability tracked as CVE-2026-134815 allows attackers to execute arbitrary commands on servers running affected Node.js applications through maliciously crafted Git arguments.
The flaw affects applications that pass untrusted input into Git operations using the popular simple-git library. VulnCheck assigned the vulnerability a CVSS 4.0 score of 9.2 (Critical), highlighting the potential consequences for applications that expose the affected functionality.
According to the National Vulnerability Database (NVD), simple-git versions before 4.1.0 contain an argument injection weakness classified as CWE-88. The issue stems from insufficient separation between user-controlled input and Git command-line options.
allowUnsafePack Protection Can Be Bypassed
The vulnerability involves a security mechanism called allowUnsafePack, which is designed to prevent dangerous Git options capable of executing external programs.
Before the security update, this protection only blocked the –exec option when handling push operations. However, attackers could circumvent the restriction by supplying the same option through other Git commands.
Applications become vulnerable when untrusted data reaches the library’s listRemote() or raw() functions. Attackers who can influence these arguments may inject –exec into commands including ls-remote, archive, fetch-pack and send-pack.
Git subsequently interprets the supplied value as an external program to execute on the server. This creates a remote code execution (RCE) condition, allowing attacker-controlled commands to run with the privileges of the affected Node.js process.
The vulnerability does not require authentication or user interaction according to its CVSS vector. However, the attack has high complexity and includes an attack requirement, meaning exploitation depends on specific application configurations.
Despite these requirements, the potential impact on confidentiality, integrity and availability is rated high. A security researcher at Upwind also documented the bypass involving allowUnsafePack.
Two Packages Require Security Updates
The vulnerability affects two packages maintained under the steveukx/git-js project:
- simple-git versions before 4.1.0.
- @simple-git/argv-parser versions before 3.0.0.
The argument parser contains checks responsible for identifying dangerous Git flags, making updates to both packages important.
According to the simple-git 4.1.0 release notes, published on November 16, the maintainers expanded allowUnsafePack protection to block –exec across all commands except rebase.
The release also introduces allowConfig and strict options, alongside a new git.cmd helper. The helper treats inserted values as untrusted data, preventing them from introducing additional Git options or modifying settings.
The maintainers acknowledged 18 contributors who submitted CVE proposals that helped shape the security changes. NVD published the vulnerability record on November 22.
Previous Argument Injection Issues Raise Concerns
CVE-2026-134815 follows several earlier security problems involving Git argument handling in simple-git.
In 2022, CVE-2022-24433 demonstrated how injecting Git options into fetch() could trigger command execution. CVE-2026-28292 subsequently exploited a missing case-insensitive regular expression flag to bypass earlier protections.
Another advisory, CVE-2026-6951, documented an incomplete fix that blocked the -c option but failed to prevent its –config equivalent.
These incidents highlight the difficulty of relying exclusively on blocklists when handling command-line arguments, particularly because Git supports multiple ways of expressing options.
With more than 12 million weekly npm downloads, simple-git’s widespread use increases the importance of checking dependency versions.
Developers should upgrade to simple-git 4.1.0 or later and @simple-git/argv-parser 3.0.0 or later. Run npm ls simple-git to identify vulnerable copies introduced through indirect dependencies.
Applications should also avoid passing raw user-controlled values into listRemote() and raw() and should validate repository URLs and branch names against predefined allowlists. Run Node.js processes with limited privileges, and maintain dependency lockfiles. Build systems should use npm ci and review dependency updates before deployment.



