simple-git
4.1.0 · 16 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
2.48.0 is the newest release of 2.x.
In short
7 changed
Security
8 advisories affect 2.6.0; 3.36.0 fixes the others
- CriticalRemote code execution in simple-gitGHSA-9w5j-4mwv-2wj8 · 26 Jan 2023Fixed in 3.16.0
- Highsimple-git allows command execution through unblocked Git configuration includesGHSA-g4wm-2vf7-vfgr · 5 Oct 2026No fix yet
- Highsimple-git: unsafe-operations plugin bypass via git long-option abbreviation (--receive-p/--exe) -> command execution (residual of CVE-2026-28291)GHSA-858h-whjf-mvg5 · 5 Oct 2026No fix yet
- Highsimple-git is vulnerable to Remote Code ExecutionGHSA-hffm-xvc3-vprc · 25 Apr 2026Fixed in 3.36.0
- Highsimple-git Affected by Command Execution via Option-Parsing BypassGHSA-jcxm-m3jx-f287 · 13 Apr 2026Fixed in 3.32.0
3 more
- Highsimple-git vulnerable to Remote Code Execution when enabling the ext transport protocolGHSA-9p95-fxvg-qgq2 · 6 Dec 2022Fixed in 3.15.0
- HighCommand injection in simple-gitGHSA-28xr-mwxg-3qc8 · 2 Apr 2022Fixed in 3.5.0
- HighCommand injection in simple-gitGHSA-3f95-r44v-8mrg · 12 Mar 2022Fixed in 3.3.0
Release note
The section about simple-git of a note shared by several packages.
2.6.0 - Native Promises, Typed Errors, TypeScript Importing, Git.clean and Git.raw
Native Promises
TL;DR -
.thenand.catchcan now be called on the standardsimpleGitchain to handle the promise
returned by the most recently added task... essentially, promises now just work the way you would expect
them to.The main export from
simple-gitno longer shows the deprecation notice for using the.thenfunction, it now exposes the promise chain generated from the most recently run
task, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.See the unit and integration tests.
See the typescript consumer test.
TypeScript Importing
Promise / async interface and TypeScript types all available from the
simple-gitimport rather than needingsimple-git/promise, see examples in the ReadMe or in the consumer tests.
Typed Errors
Tasks that previously validated their usage and rejected with a
TypeErrorwill now reject with aTaskConfigurationError.Tasks that previously rejected with a custom object (currently only
git.mergewhen the auto-merge fails)
will now reject with aGitResponseErrorwhere previously it
was a modifiedError.
Git Clean
git.clean(...)will now return aCleanSummaryinstead of the raw string data
Git Raw
git.raw(...)now accepts any number of leading string arguments as an alternative to the
single array of strings.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.