CVE-2026-102828: simple-git unsafe-operation guard does not block trailer command configuration

Published Sep 29, 2026
·
Updated

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.

Affected Software

1 affected component
npm/simple-git>=3.15.0<4.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade simple-git to a version that resolves this vulnerability.

    Fixed in 4.0.1

Event History

Sep 29, 2026
CVE Published
via MITRE·06:43 PM
Data Sourced
via MITRE·06:43 PM
DescriptionWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are realistically exposed?

Applications using simple-git from 3.15.0 through versions before 4.0.1 are exposed if they pass attacker-controlled values through SimpleGitOptions.config or inline Git -c arguments and later invoke git interpret-trailers with the configured trailer.

2

What does an attacker need to exploit this issue?

The attacker needs influence over a Git configuration key or inline -c argument accepted by the application, specifically a trailer.<token>.cmd setting, and a path that causes git interpret-trailers to process that trailer configuration. The resulting command runs with the operating-system identity and permissions of the Node.js process.

3

Are default simple-git protections sufficient?

No. In affected versions, the default blockUnsafeOperationsPlugin does not treat trailer.<token>.cmd as unsafe, so its default unsafe-operation guard does not block this configuration.

4

What is the available remediation?

Upgrade simple-git to version 4.0.1, which fixes the issue. Until then, do not pass untrusted input through SimpleGitOptions.config or inline -c arguments, particularly configuration keys matching trailer.<token>.cmd.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203