CVE-2026-110634: git-diff · OS command injection vulnerability via crafted strings to the gitDiff API
Affects git-diffSource GCVE Database
Not known to be exploited · CVSS 9.3 Critical : upgrade to 2.0.7 as a priority.
Data as of 27 Oct 2026, 17:42 UTC
- Patch
- Available – fixed in 2.0.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade git-diff to 2.0.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmgit-diff | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade git-diff to version 2.0.7 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory.
Description
git-diff versions prior to 2.0.7 contain a critical OS command injection vulnerability. This flaw allows attackers to execute arbitrary shell commands by supplying specially crafted strings to the gitDiff API. The vulnerability arises because the API evaluates these strings using shelljs.exec with Node.js process privileges. A fix is available in version 2.0.7.
References
- nvd.nist.gov/vuln/detail/CVE-2026-110634 (opens in a new tab)
- github.com/danday74/git-diff/pull/16 (opens in a new tab)
- github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19 (opens in a new tab)
- github.com/danday74/git-diff (opens in a new tab)
- github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js (opens in a new tab)
- vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings (opens in a new tab)