CVE-2026-102827Simple-git Project Simple-git
Remote code execution in Simple-git via option validation bypass
Critical 9.8 No auth needed
Follow: this CVE · Simple-git Project · Simple-git Project Simple-git We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Sep 29, 2026
- Updated
- Oct 8, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Simple-git before 4.0.0 fails to properly validate Git option abbreviations, allowing malicious arguments in push operations to bypass dangerous command detection. An attacker can execute arbitrary commands on systems exposing attacker-influenced push arguments through a local or attacker-controlled remote repository.
Show the original NVD text
simple-git, an interface for running git commands in any node.js application, enables applications to execute Git operations from JavaScript. Prior to 4.0.0, the default blockUnsafeOperationsPlugin compares parsed option names with literal dangerous option spellings while Git accepts unambiguous long-option abbreviations. Attacker-influenced push arguments such as abbreviated --receive-pack or --exec forms can therefore bypass detectVulnerableFlags, reach git push against a local or file remote or an attacker-influenced receive-pack target, and cause Git to invoke an attacker-selected command in consumers that expose those arguments. The clone-side abbreviation handling does not protect the push path. This issue is fixed in 4.0.0.
What to do
Patch available · fixed versions: 4.0.0
Update simple-git to version 4.0.0 or later to apply enhanced Git option validation.
- Apply the vendor's security update for Simple-git.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | simple-git |
< 4.0.0 |
4.0.0 |
npm install simple-git@4.0.0 |
Per OSV / GitHub Advisories (GHSA-858h-whjf-mvg5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| simple-git_project | simple-git | < 4.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Exploit Mitigation Vendor Advisory