AploSec / Disclosures / CVE-2026-110634

Fix mergedFixed in 2.0.7CWE-78npm

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

CVE-2026-110634 · published 2026-10-14

Summary

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.

Evidence

The maintainer accepted the patch submitted with the report and merged the fix.

Remediation

Upgrade git-diff to 2.0.7 or later.

References

Package
git-diff
Ecosystem
npm
Weekly downloads
585k
Affected
< 2.0.7
Fixed
2.0.7
Weakness
CWE-78
CNA
VulnCheck
Credit
Zachariah Mithani