GHSA-6wfj-92cw-88vg

Suggest an improvement
Source
https://github.com/advisories/GHSA-6wfj-92cw-88vg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6wfj-92cw-88vg/GHSA-6wfj-92cw-88vg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6wfj-92cw-88vg
Aliases
Published
2026-10-14T15:32:27Z
Modified
2026-10-27T16:15:05Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) 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 CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-27T16:09:34Z",
    "nvd_published_at":  "2026-10-14T15:17:16Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / git-diff

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
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"