simple-git, an interface for running git commands in any node.js application, enables applications to execute Git operations from JavaScript. From 3.15.0 until 4.0.1, the default blockUnsafeOperationsPlugin does not classify trailer.<token>.cmd as unsafe configuration. An application that passes attacker-controlled values through SimpleGitOptions.config or inline -c arguments can therefore allow Git to invoke an attacker-selected shell command when git interpret-trailers processes the configured trailer. The command executes with the operating-system identity and permissions of the Node.js process. This issue is fixed in 4.0.1.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://github.com/steveukx/git-js/commit/d762810c13b331ff1e5eb24c0b434646d2a8d1b3 Patch
- https://github.com/steveukx/git-js/pull/1198 Patch
- https://github.com/steveukx/git-js/security/advisories/GHSA-x6jw-m9v5-85vh Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.2 · simple-git_projectNVD modified 2026-10-08 20:03
Affected (CPE criteria) 1
cpe:2.3:a:simple-git_project:simple-git:*:*:*:*:*:node.js:*:*
References 4
- https://github.com/steveukx/git-js/commit/d762810c13b331ff1e5eb24c0b434646d2a8d1b3 Patch
- https://github.com/steveukx/git-js/pull/1198 Patch
- https://github.com/steveukx/git-js/releases/tag/[email protected] Release Notes
- https://github.com/steveukx/git-js/security/advisories/GHSA-x6jw-m9v5-85vh Mitigation, Vendor Advisory