AploSec / Disclosures / CVE-2026-110634

Critical 9.3Fix 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

In plain words: this type of bug lets someone run their own commands on the server (command injection). A fixed release is listed.

Summary

CVE-2026-110634 affects git-diff (npm) < 2.0.7: Command injection via gitDiff Input Strings (CWE-78). Fixed in 2.0.7. CVSS 4.0 base score 9.3 (Critical), assigned by VulnCheck. Published 2026-10-14 by VulnCheck. Credit: Zachariah Mithani.

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. Releases in the affected range (< 2.0.7) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-10-14 CVE published
  • 2026-10-28 Public record last updated

References

Severity
Critical 9.3CVSS 4.0, scored by VulnCheck in the CVE record
Package
git-diff
Ecosystem
npm
Affected
< 2.0.7
Fixed
2.0.7
Weakness
CWE-78
CNA
VulnCheck
Credit
Zachariah Mithanifinder