{"id":"GHSA-6wfj-92cw-88vg","summary":"git-diff: OS command injection vulnerability via crafted strings to the gitDiff API","details":"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.","aliases":["CVE-2026-110634"],"modified":"2026-10-27T16:15:05.342333Z","published":"2026-10-14T15:32:27Z","database_specific":{"cwe_ids":["CWE-78"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-10-27T16:09:34Z","nvd_published_at":"2026-10-14T15:17:16Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-110634"},{"type":"WEB","url":"https://github.com/danday74/git-diff/pull/16"},{"type":"WEB","url":"https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19"},{"type":"PACKAGE","url":"https://github.com/danday74/git-diff"},{"type":"WEB","url":"https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings"}],"affected":[{"package":{"name":"git-diff","ecosystem":"npm","purl":"pkg:npm/git-diff"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6wfj-92cw-88vg/GHSA-6wfj-92cw-88vg.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}