Repository navigation
Update dependency simple-git to v4 [SECURITY]
Notable changes
365f52d: Prepare package.json before publishing.98864c6: Major upgrade to v4. In this version:98864c6: Support one-shot stdin viagit.input(data)(stringorBuffer).d762810: AddallowUnsafeExecdetection torebase -xandrebase --exec.76f308e: Parse binary rename entries without byte counts in diff summaries.- Updated dependencies [
c427fba] - Updated dependencies [
1bb14df] - Updated dependencies [
dfeb116] - Updated dependencies [
d762810] - Updated dependencies [
98864c6] 89a2294: Extend known exploitable configuration keys and per-task environment variables.1ad57e8: Remove conflicting node:buffer import- Updated dependencies [
89a2294] - Updated dependencies [
675570a] 0cf9d8c: Improvements for mono-repo publishing pipeline- Updated dependencies [
0cf9d8c] 0de400e: Update monorepo version handling during publish- Updated dependencies [
0de400e] 3d8708b: Updating publish config- Updated dependencies [
3d8708b] 2b68331: Revised dependency tree to add helper modules as dependencies in mainsimple-git2e1f51c: Enhances scanning of arguments before passing on to the spawnedchild_process.- Updated dependencies [
2e1f51c] a263635: Usepathspecwrappers for remote and local paths when running eithergit.cloneorgit.mirrortoe253a0d: Enhancedgit -cchecks inunsafeplugin.f704208: Enhancedprotocol.allowchecks inallowUnsafeExtProtocolhandling.8d02097: Enhanced clone unsafe switch detection.23b070f: Fix regex for detecting unsafe clone options1effd8e: Enhances theunsafeplugin to block additional cases where the-uswitch may be disguisedd5fd4fe: Use task runner for logging use of deprecated (already no-op) functions.a44184f: Resolve NPM publ
steveukx/git-js (simple-git)
v4.0.1
Patch Changes
365f52d: Prepare package.json before publishing.
v4.0.0
Major Changes
-
98864c6: Major upgrade to v4. In this version:- Removed previously available default export, now uses a consistently named
simpleGitexport. - Removed previously deprecated import
simple-git/promise(change to using the mainsimple-gitimport). - Removed legacy
gitPexport (change to using the mainsimpleGitexport).
// v3 - previously supported imports import simpleGit from "simple-git"; import { gitP } from "simple-git"; import simpleGit from "simple-git/promise"; const simpleGit = require("simple-git"); // v4 - consolidates to a single supported import import { simpleGit } from "simple-git"; const { simpleGit } = require("simple-git");
- Prevents the use of abbreviated long-form
gitoptions:
// v3 - allowed the use of unambiguous long-form options git.raw("clone", "--conf=user.name=me", "..."); // v4 - requires full option names, abbreviated option names will now throw a GitConfigurationError git.raw("fetch", "--config=user.name=me", "...");
Thanks to @anir0y, @CFionaBF, @Leeziao, @internetteletubbie, @idisdi, @the-vibe-dev,
@D7EAD, @dellalibera, @gdegrange, @bilguunbicktivism, @cruzryan, @b1ue0ceanRun, @oss-security-shopify
for identifying the vulnerability.- Ambient environment variables are filtered before passing into the
gitchild process.
// v3 process.env.FOO = "bar"; process.env.GIT_TEMPLATE_DIR = "./some/path"; simpleGit().raw("clone"); // git child process can see both environment variables // v4 process.env.FOO = "bar"; process.env.GIT_TEMPLATE_DIR = "./some/path"; simpleGit().raw("clone"); // git child process now sees only FOO simpleGit({ // explicitly allow the named environment variable so it can pass through. allowEnvoronment: ["GIT_TEMPLATE_DIR"], // and enable the use of an unsafe behaviour unsafe: { allowUnsafeTemplateDir: true }, });
- Explicitly supplied disallowed environment variables will throw when used.
// v3 used a single opt-in to potential unsafe actiity simpleGit({ unsafe: { allowUnsafeTemplateDir: true } }) .env({ GIT_TEMPLATE_DIR: "./foo" }) .init(); // v4 uses a double opt-in, allow the behaviour and the mechanism simpleGit({ allowEnvoronment: ["GIT_TEMPLATE_DIR"], unsafe: { allowUnsafeTemplateDir: true }, }) .env({ GIT_TEMPLATE_DIR: "./foo" }) .init();
- Removed content deprecated during the v2 to v3 major change
simpleGit.silent()logging is configured through environment variables in thedebugpackagesimpleGit.clearQueue()this has been a noop since v3, switch to using theabortplugin- Accessing parsed properties of a
GitResponseErrorthrough a trailing callback function are available only through theerror.gitproperty (previously properties were also spread onto theerroritself with a deprecation notice).
- Removed previously available default export, now uses a consistently named
Minor Changes
-
98864c6: Support one-shot stdin viagit.input(data)(stringorBuffer).Thanks to @felipecrs for the feature request and initial implementation.
Patch Changes
-
d762810: AddallowUnsafeExecdetection torebase -xandrebase --exec.Thanks to @gdegrange for the vulnerability report.
-
76f308e: Parse binary rename entries without byte counts in diff summaries. -
Updated dependencies [
c427fba] -
Updated dependencies [
1bb14df] -
Updated dependencies [
dfeb116] -
Updated dependencies [
d762810] -
Updated dependencies [
d762810] -
Updated dependencies [
98864c6]- @simple-git/argv-parser@2.0.0
- @simple-git/args-pathspec@1.0.4
v3.36.0
Minor Changes
-
89a2294: Extend known exploitable configuration keys and per-task environment variables.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.Thanks to @zebbern for identifying the need to block
core.fsmonitor.
Thanks to @kodareef5 for identifying the need to blockGIT_CONFIG_COUNTenvironment variables and--template/mergerelated config.
Patch Changes
1ad57e8: Remove conflicting node:buffer import- Updated dependencies [
89a2294] - Updated dependencies [
675570a]- @simple-git/argv-parser@1.1.0
- @simple-git/args-pathspec@1.0.3
v3.35.2
Patch Changes
0cf9d8c: Improvements for mono-repo publishing pipeline- Updated dependencies [
0cf9d8c]- @simple-git/args-pathspec@1.0.2
- @simple-git/argv-parser@1.0.3
v3.35.1
Patch Changes
0de400e: Update monorepo version handling during publish- Updated dependencies [
0de400e]- @simple-git/argv-parser@1.0.2
v3.35.0
Minor Changes
3d8708b: Updating publish config
Patch Changes
- Updated dependencies [
3d8708b]- @simple-git/args-pathspec@1.0.1
- @simple-git/argv-parser@1.0.1
v3.34.0
Minor Changes
2b68331: Revised dependency tree to add helper modules as dependencies in mainsimple-git
Patch Changes
-
2e1f51c: Enhances scanning of arguments before passing on to the spawnedchild_process.Caters for
-cflags prefixing thegittask (used when setting global inline config) and suffixing with either-c,--configor--config-env. Detectsgit configoperations that write to the configuration. -
Updated dependencies [
2e1f51c]- @simple-git/args-pathspec@1.0.0
- @simple-git/argv-parser@1.0.0
v3.33.0
Minor Changes
a263635: Usepathspecwrappers 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.
Patch Changes
-
e253a0d: Enhancedgit -cchecks inunsafeplugin.Thanks to @JohannesLks for identifying the issue
v3.32.3
Patch Changes
-
f704208: Enhancedprotocol.allowchecks inallowUnsafeExtProtocolhandling.Thanks to @CodeAnt-AI-Security for identifying the issue
v3.32.2
Patch Changes
8d02097: Enhanced clone unsafe switch detection.
v3.32.1
Patch Changes
-
23b070f: Fix regex for detecting unsafe clone optionsThanks to @stevenwdv for reporting this issue.
v3.32.0
Minor Changes
-
1effd8e: Enhances theunsafeplugin to block additional cases where the-uswitch may be disguised
along with other single character options.Thanks to @JuHwiSang for identifying this as vulnerability.
Patch Changes
d5fd4fe: Use task runner for logging use of deprecated (already no-op) functions.
v3.31.1
Patch Changes
a44184f: Resolve NPM publ
✂ Note
PR body was truncated to here.
List of commits
9a1fc7f (Update dependency simple-git to v4 [SECURITY], 2026-11-20)