{"id":"CVE-2026-110634","published":"2026-10-14T14:17:07Z","modified":"2026-10-14T17:34:01Z","title":"git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings","vendor":"danday74","product":"git-diff","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02574,"percentile":0.85898,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/danday74/git-diff/pull/16","tags":["issue-tracking","patch"]},{"url":"https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19","tags":["patch"]},{"url":"https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30","tags":["technical-description"]},{"url":"https://github.com/danday74/git-diff","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings","tags":["third-party-advisory"]}],"priority":{"score":29.0,"factors":[{"name":"EPSS percentile","points":17.18},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-09","earliestUrl":"https://github.com/federiconbaez/cortex9-git-diff-shell-hash-object-injection-model","repos":[{"name":"federiconbaez/cortex9-git-diff-shell-hash-object-injection-model","url":"https://github.com/federiconbaez/cortex9-git-diff-shell-hash-object-injection-model","stars":0,"created":"2026-11-09"}]},"first":{"date":"2026-11-09","source":"PoC-in-GitHub","url":"https://github.com/federiconbaez/cortex9-git-diff-shell-hash-object-injection-model"},"provenance":"source"},"vendorSlug":"danday74","affectedVersions":[{"vendor":"danday74","product":"git-diff","versions":["< 2.0.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-14T17:33:42.528799Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"git-diff","vulnerableRanges":["<2.0.7"],"patched":["2.0.7"],"from":["GHSA-6wfj-92cw-88vg"],"provenance":"source"}],"summary":{"text":"The git-diff package (vendor danday74), before version 2.0.7, contains an OS command injection flaw in its gitDiff API, where input strings are passed unsanitised to shelljs.exec. An attacker who can supply a document string to be diffed can embed shell substitutions such as $(cmd) or backticks to run arbitrary commands with Node.js process privileges, requiring only network access to the application and no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:04:05Z"},"euvd":{"id":"EUVD-2026-101262","exploited":false,"provenance":"source"}}