CVE-2026-110634
Critical
Description
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.
SeverityCritical
CVSS9.8
Exploit probability—
ProductGit-diff
PublishedOct 14, 2026
First seenOct 14, 2026
Weakness typeCWE-78OS command injection
How to fix
Update
- git-diff2.0.7 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| git-diffnpm | v < 2.0.7 | 2.0.7 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.