CVE Catalog

CVE-2026-102827

HighCVSS 8.1
Published: Translated: NVD NIST

Summary

simple-git before 4.0.0 has a flaw in the default blockUnsafeOperationsPlugin, which compares parsed option names against literal dangerous option spellings while Git accepts unambiguous long-option abbreviations. Attacker-influenced push arguments such as abbreviated --receive-pack or --exec forms can bypass detectVulnerableFlags and cause Git to invoke an attacker-selected command.

Risk Assessment

Node.js applications that pass user-influenced push arguments may allow an attacker to execute arbitrary commands with the privileges of the Node.js process. This can lead to system compromise or data theft.

Recommendation

Upgrade simple-git to version 4.0.0 or later. Additionally, avoid passing untrusted arguments directly to git push operations.

Other vulnerabilities in simple-git

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS