simple-git
4.1.0 · 16 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
Upgrading simple-git From 1.23.0 to 4.1.0
234 releases in betweennotes for 117
Reading releases, release notes and advisories…
Counted from 117 of 234 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
- Deprecated2.35.2
- Deprecated2.26.0
- Deprecated2.23.0
- Deprecated2.15.0
- Deprecated2.15.0
- Deprecated2.15.0
Security
Fixes 8 advisories affecting 1.23.0
- Command injection in simple-githigh · GHSA-28xr-mwxg-3qc8
- Command injection in simple-githigh · GHSA-3f95-r44v-8mrg
- simple-git: unsafe-operations plugin bypass via git long-option abbreviation (--receive-p/--exe) -> command execution (residual of CVE-2026-28291)high · GHSA-858h-whjf-mvg5
- simple-git vulnerable to Remote Code Execution when enabling the ext transport protocolhigh · GHSA-9p95-fxvg-qgq2
- Remote code execution in simple-gitcritical · GHSA-9w5j-4mwv-2wj8
- simple-git allows command execution through unblocked Git configuration includeshigh · GHSA-g4wm-2vf7-vfgr
- simple-git is vulnerable to Remote Code Executionhigh · GHSA-hffm-xvc3-vprc
- simple-git Affected by Command Execution via Option-Parsing Bypasshigh · GHSA-jcxm-m3jx-f287
- 4.1.0
Closing the loop on any configuration setting ending with
.cmdorcommandunder the catch-allallowUnsafeCommandBinariessetting (only enforced with the newunsafe.recommendedoption, orstrict), and blockinggpg.ssh.defaultKeyCommandunderallowUnsafeGpgProgram. - 4.1.0
allowUnsafePagerwill now catch setting a custom binary ingit grep --open-files-in-pager. - 4.1.0
allowUnsafePagernow also coversinteractive.diffFilter, the shell command thatgit add -pand the other--patchcommands pipe their diff through. - 4.1.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeSendEmailConfigoption covering thesendemail.*keys thatgit send-emailruns as commands, reads as files or uses to turn off certificate verification (sendmailCmd,toCmd,ccCmd,headerCmd,smtpServer,smtpServerOption,smtpSSLCertPath,smtpSSLClientCert,smtpSSLClientKey,aliasesFileandmailmap.file, including their per-identitysendemail.<identity>.*variants), and theimap.tunnel,imap.hostandimap.sslVerifykeys used bygit imap-send. - 4.1.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeWebServerConfigoption covering theinstaweb.httpd,instaweb.modulePathandinstaweb.gitwebDirkeys used bygit instaweb. - 4.1.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeBrowseroption covering thebrowser.<tool>.path,browser.<tool>.cmd,man.<tool>.pathandman.<tool>.cmdkeys used bygit helpandgit instawebto open a browser or man page viewer.browser.<tool>.cmdandman.<tool>.cmdwere previously covered byallowUnsafeCommandBinaries. - 4.1.0
New (deprecated on arrival, prefer
allowConfig)allowUnsafeSignatureTrustoption coveringgpg.ssh.allowedSignersFile,gpg.ssh.revocationFileandgpg.minTrustLevel, which decide which signatures pass verification. - 4.1.0
allowUnsafePacknow blocks--execfor every command other thanrebase, as it names the remote program forpush,send-pack,fetch-pack,archive --remoteandls-remote(previously onlypush). - 4.1.0
New
allowUnsafeConfigRenameoption blockinggit config --rename-section/git config rename-section, which could move keys written under a harmless section name (eg:foo.fsmonitor) into one that runs commands (core.fsmonitor). - 4.1.0
allowUnsafeExecnow also covers thegit filter-branchoptions that run a shell command:--setup,--env-filter,--tree-filter,--index-filter,--parent-filter,--msg-filter,--commit-filterand--tag-name-filter.
Release by release
- Security
Closing the loop on any configuration setting ending with
.cmdorcommandunder the catch-allallowUnsafeCommandBinariessetting (only enforced with the newunsafe.recommendedoption, orstrict), and blockinggpg.ssh.defaultKeyCommandunderallowUnsafeGpgProgram. - Security
allowUnsafePagerwill now catch setting a custom binary ingit grep --open-files-in-pager. - Security
allowUnsafePagernow also coversinteractive.diffFilter, the shell command thatgit add -pand the other--patchcommands pipe their diff through. - Security
New (deprecated on arrival, prefer
allowConfig)allowUnsafeSendEmailConfigoption covering thesendemail.*keys thatgit send-emailruns as commands, reads as files or uses to turn off certificate verification (sendmailCmd,toCmd,ccCmd,headerCmd,smtpServer,smtpServerOption,smtpSSLCertPath,smtpSSLClientCert,smtpSSLClientKey,aliasesFileandmailmap.file, including their per-identitysendemail.<identity>.*variants), and theimap.tunnel,imap.hostandimap.sslVerifykeys used bygit imap-send.
- Security
- New
Add
VISUALenvironment variable to set ofallowUnsafeEditorenvironment variables.
- New
- Fixed
Prepare package.json before publishing.
- Fixed
- Breaking
Removed previously available default export, now uses a consistently named
simpleGitexport. - Breaking
Removed legacy
gitPexport (change to using the mainsimpleGitexport). - New
Support one-shot stdin via
git.input(data)(stringorBuffer). - New
Add
allowUnsafeExecdetection torebase -xandrebase --exec. - Fixed
Parse binary rename entries without byte counts in diff summaries.
- Breaking
- Security
Note -
ParsedVulnerabilitiesfromargv-parseris removed in favour of a readonly array ofVulnerabilityto match usage insimple-git, rolled into the newvulnerabilityCheckfor simpler access to the identified issues. - New
Extend known exploitable configuration keys and per-task environment variables.
- Fixed
Remove conflicting node:buffer import
- Security
- Fixed
Improvements for mono-repo publishing pipeline
- Fixed
- Fixed
Update monorepo version handling during publish
- Fixed
- New
Updating publish config
- New
36 other lines we could not sort, mostly version bumps
- 4.0.0
Removed previously deprecated import
simple-git/promise(change to using the mainsimple-gitimport). - 2.30.0
Reinstates native support for node.js v10 by removing use of ES6 constructs
- 2.29.0
Update type definition for
git.mergeFromToto be theMergeResultreturned when using the more genericgit.mergemethod. - 2.27.0
RM old -> newwill now appear inrenamedandnewwill also appear inmodified - 2.27.0
D filewill now appear in bothdeletedandstagedwhereD filewould only appear indeleted - 2.25.0
When using
git.commit, the first argument must be a string or array of strings. Passing another data type has long been considered an error, but now a deprecation warning will be shown in the log and will be switched to an error in version 3. - 2.24.0
pull,pushandpushTagsparameter types updated to match new functionality and tests switched to TypeScript to ensure they are kept in sync - 2.23.0
Renames the default source branch from
mastertomain - 2.19.0
Move the command/task option processing function to TypeScript
- 2.18.0
git.cloneandgit.mirrorrewritten to fit the TypeScript tasks style.
18 internal lines (docs, tests, tooling) left out.
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.