CVE Catalog

CVE-2026-110634

CriticalCVSS 9.8
Published: Translated: NVD NIST

Summary

git-diff before 2.0.7 contains an OS command injection vulnerability. Attackers can supply crafted strings to the gitDiff API, embedding $(cmd) or backtick substitutions that shelljs.exec evaluates, running commands with Node.js process privileges.

Risk Assessment

An attacker can execute arbitrary commands in the context of the Node.js application, potentially leading to server compromise, data theft, or further privilege escalation.

Recommendation

Update git-diff to version 2.0.7 or later, or validate and sanitize strings passed to the gitDiff API.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS