git-diff
Affected
- introduced
0, fixed2.0.7(semver)
Fixed versions
2.0.7
Fix
- Fixed version
2.0.7npm install [email protected]
Advisory
Also known as: CVE-2026-110634
git-diff: OS command injection vulnerability via crafted strings to the gitDiff API
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.
Critical Basis: The source's own band: CRITICAL
0, fixed 2.0.7 (semver)2.0.7
2.0.7npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0