simple-git
4.1.0 · 16 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
Upgrading simple-git From 3.19.1 to 4.0.1
24 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
Security
Fixes 6 advisories affecting 3.19.1
- 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 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
- simple-git has blockUnsafeOperationsPlugin bypass via case-insensitive protocol.allow config key enables RCEcritical · GHSA-r275-fr43-pm7q
- simple-git unsafe-operation guard does not block trailer command configurationcritical · GHSA-x6jw-m9v5-85vh
- 3.36.0
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.
Release by release
- 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
- New
Revised dependency tree to add helper modules as dependencies in main
simple-git - Fixed
Enhances scanning of arguments before passing on to the spawned
child_process.
- New
- New
Use
pathspecwrappers for remote and local paths when running eithergit.cloneorgit.mirrorto avoid leaving them less open for unexpected outcomes when passing unsanitised data into these tasks. - Fixed
Enhanced
git -cchecks inunsafeplugin.
- New
1 other line we could not sort, mostly version bumps
- 4.0.0
Removed previously deprecated import
simple-git/promise(change to using the mainsimple-gitimport).
6 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.