git-diff: OS command injection vulnerability via crafted strings to the gitDiff API
Exact source revision recorded 27 Oct 2026 16:44:03 UTC. It does not establish the source's current position. Latest evidence.
osv · GHSA-6wfj-92cw-88vg
Publishedgit-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.
- Source published
- 14 Oct 2026 15:32:27 UTC
- Source modified
- 27 Oct 2026 16:15:05 UTC
- Observed here
- 27 Oct 2026 16:44:03 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · GitHub Advisory Database · CC-BY-4.0. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS_V3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS_V4 · 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
Publisher rating · CRITICAL