CVE-2026-110634: Vulnerability in git-diff

Critical. 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.

npm, CWE-78

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
2.6 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-6wfj-92cw-88vg
EU ID
EUVD-2026-101262
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78
Published
14 Oct 2026
Last change
27 Oct 2026
Likelihood rank
Higher than 86 % of all rated vulnerabilities
Analysis status
Deferred
Ecosystem
npm

Affected packages

Vulnerable version ranges and fixed releases

  • git-diff npm, Affected before 2.0.7. Fixed in 2.0.7

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes