CVE-2026-110634: git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings

Published Oct 14, 2026
·
Updated

git-diff before 2.0.7 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying crafted strings to the gitDiff API. Attackers who control a diffed document string can embed $(cmd) or backtick substitutions that shelljs.exec evaluates, running commands with Node.js process privileges.

Affected Software

1 affected component
npm/git-diff<2.0.7

Event History

Oct 14, 2026
CVE Published
via MITRE·02:17 PM
Data Sourced
via MITRE·02:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using git-diff before 2.0.7 are exposed if an attacker can control either document string passed to the gitDiff API. The injected command runs with the privileges of the Node.js process.

2

Does exploitation require authentication or user interaction?

No. The provided severity vector indicates network-reachable exploitation with low attack complexity, no privileges required, and no user interaction.

3

What input patterns can trigger command execution?

Crafted diffed document strings containing shell command substitutions such as $(cmd) or backtick substitutions can be evaluated by shelljs.exec.

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