Live threats

All CVEs / Simple-git Project

CVE-2026-102828Simple-git Project Simple-git

Remote code execution in simple-git via unsafe trailer configuration

Critical 9.2 No auth needed

Priority
70
CVSS 4.0
9.2
EPSS
—
Auth required
No
Published
Sep 29, 2026
Updated
Oct 8, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78, CWE-184
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

simple-git, an interface for running Git commands in Node.js applications, fails to classify trailer.<token>.cmd as an unsafe operation in versions 3.15.0 to 4.0.0. An attacker can pass controlled values through SimpleGitOptions.config or -c arguments to execute arbitrary shell commands when git interpret-trailers processes the configuration, with the permissions of the Node.js process.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 4.0.1

Update simple-git to version 4.0.1 or later to apply the fix to the blockUnsafeOperationsPlugin.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Simple-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm simple-git ≥ 3.15.0 < 4.0.1 4.0.1 npm install simple-git@4.0.1

Per OSV / GitHub Advisories (GHSA-x6jw-m9v5-85vh). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
simple-git_projectsimple-git≥ 3.15.0 < 4.0.1

Official sources

References

Links published by the sources. Open them with care.