git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings
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.
CVE-2026-110634
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-110634
git-diff
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://github.com/danday74/git-diff",
"vendor": "danday74",
"product": "git-diff",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "2.0.7",
"versionType": "semver"
}
],
"packageURL": "pkg:npm/git-diff",
"collectionURL": "https://www.npmjs.com/package/git-diff",
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-110634
Source reference:
/cveMetadata/cveId
Publisher severity
critical
Source reference: /containers/cna/metrics
- Event
- #22863 · Revision 1
- Added to Heist Feed
- Publisher date