home / blog

2026-11-09 · critical

CVE-2026-110634: Critical Command Injection in git-diff

Git-diff < 2.0.7: CVSS 9.8 command injection in gitDiff API. Patch immediately to 2.0.7.

CVE-2026-110634: Critical Command Injection in git-diff

CVE-2026-110634 describes a command injection vulnerability in the gitDiff API of git-diff before version 2.0.7. The component internally uses shelljs.exec to process commands but fails to properly sanitize input strings provided to the public API. Attackers controlling the content of a document to be diffed can insert command substitutions that are evaluated as shell commands, allowing arbitrary command execution with the privileges of the Node.js process.

The CVSS score is 9.8 (critical). The vulnerability allows arbitrary code execution at the OS level, with maximum impact on all CIA vectors (confidentiality, integrity, availability). The CVE was published on NVD on 2026-10-14. A public signal appeared on GitHub on 2026-11-09 describing an offline educational model of the vulnerability, indicating the flaw is already receiving attention from the security community. No evidence of widespread active exploitation is reported in the data.

For defense: 1) Immediately inventory all systems running git-diff version below 2.0.7; 2) Plan upgrade to 2.0.7 or later as high priority; 3) If immediate upgrade is not possible, restrict gitDiff API access to trusted internal sources only and disable it where not required; 4) Monitor Node.js process logs for command injection patterns. Review execution history for anomalous activity.

At a glance

What
Git-diff before version 2.0.7 contains a command injection vulnerability in the gitDiff API. Attackers can inject shell commands via crafted strings in the diff request that are evaluated by shelljs.exec.
Severity
CVSS 9.8 (critical). OS-level command injection with command execution at Node.js process privileges. Maximum impact on confidentiality, integrity, and availability.
Affected versions
git-diff below 2.0.7. Fixed version: 2.0.7 and later.
Fix
Upgrade to git-diff 2.0.7 or later. No alternative workaround is reported; the patch is the only mitigation.
Status
CVE published on NVD on 2026-10-14. Public signals of interest on GitHub as of 2026-11-09. Patch available.
Action
Identify all systems using git-diff < 2.0.7, especially in environments processing documents from untrusted sources. Plan immediate upgrade to 2.0.7. Review Node.js process execution logs for suspicious activity.

Sources: NVD, CVE-2026-110634

← All articles