Description
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.
Published: 2026-09-29
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Command Execution
Action: Immediate Patch
AI Analysis

Impact

simple‑git’s safety guard fails to recognize trailer command configuration as unsafe, allowing an attacker to insert arbitrary shell commands through configuration options or inline -c arguments. The resulting command runs with the operating‑system identity of the Node.js process, giving the attacker full control over the host system. The weakness aligns with command injection failures (CWE‑184, CWE‑78) and can be used for remote code execution.

Affected Systems

The vulnerability affects the steveukx:git-js package in all releases from 3.15.0 up to, but not including, 4.0.1. Affected applications that import simple‑git between these versions can expose an attacker‑controlled configuration to git’s interpret‑trailers routine. The issue was addressed in 4.0.1.

Risk and Exploitability

With a CVSS score of 9.2, the flaw is considered critical. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, but the high severity rating indicates that a successful exploit would provide unrestricted execution. The likely attack vector occurs when an application passes untrusted values through SimpleGitOptions.config or inline -c arguments, enabling the attacker to inject shell commands that git will run as the Node.js process. The exploitation requires the application to enable configuration injection, which many untrusted or user‑controlled contexts do.

Generated by OpenCVE AI on September 29, 2026 at 22:07 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade simple‑git to version 4.0.1 or later, which contains the corrected blockUnsafeOperationsPlugin.
  • Review and remove any use of trailer.<token>.cmd configuration injected via SimpleGitOptions.config or inline -c arguments, ensuring that only trusted, static values are supplied.
  • Validate and sanitize all configuration inputs before passing them to simple‑git, or disable the unsafe operations plugin entirely if configuration control cannot be guaranteed.

Generated by OpenCVE AI on September 29, 2026 at 22:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-x6jw-m9v5-85vh simple-git unsafe-operation guard does not block trailer command configuration
History

Thu, 08 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Simple-git Project
Simple-git Project simple-git
CPEs cpe:2.3:a:simple-git_project:simple-git:*:*:*:*:*:node.js:*:*
Vendors & Products Simple-git Project
Simple-git Project simple-git
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Tue, 06 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important


Wed, 30 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 29 Sep 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Steveukx
Steveukx git-js
Vendors & Products Steveukx
Steveukx git-js

Tue, 29 Sep 2026 18:45:00 +0000

Type Values Removed Values Added
Description 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.
Title simple-git unsafe-operation guard does not block trailer command configuration
Weaknesses CWE-184
CWE-78
References
Metrics cvssV4_0

{'score': 9.2, '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'}


Subscriptions

Simple-git Project Simple-git
Steveukx Git-js
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-30T20:08:15.246Z

Reserved: 2026-09-29T17:25:25.265Z

Link: CVE-2026-102828

cve-icon Vulnrichment

Updated: 2026-09-30T20:08:11.704Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-29T19:17:25.207

Modified: 2026-10-08T20:03:07.760

Link: CVE-2026-102828

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-29T18:43:19Z

Links: CVE-2026-102828 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-29T22:15:08Z

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')