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

Critical 9.3 Published Updated

Attackers can execute arbitrary shell commands by providing crafted strings to the gitDiff API in the git-diff library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-110634?

CVE-2026-110634 is a critical command injection vulnerability in danday74 git-diff, published on 14 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-78

Which versions are affected by CVE-2026-110634?

2 open source packages ship an affected version, including git-diff.

PackageAffectedFixed in
git-diff npmAll versions2.0.7
git-diff npmAll versions2.0.7

How do I fix CVE-2026-110634?

Upgrade git-diff to 2.0.7 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-110634 being exploited?

There is no known exploitation of CVE-2026-110634 in the wild and no public exploit code.

Sources

Also known as GHSA-6wfj-92cw-88vg.

Is CVE-2026-110634 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free