git-diff

Ecosystem: npm

Downloads:

Vulnerabilities from the last (months)
  • 1CriticalAffects 1 version
  • 0HighAffects 0 versions
  • 0MediumAffects 0 versions
  • 0ModerateAffects 0 versions
  • 0LowAffects 0 versions
Severity distribution (all time)
1vulnerability
  • Critical1 (100.0%)
  • High0 (0.0%)
  • Medium0 (0.0%)
  • Moderate0 (0.0%)
  • Low0 (0.0%)

Monthly breakdown

  • 1 vulnerabilities
    • Critical: 1
    • High: 0
    • Medium: 0
    • Moderate: 0
    • Low: 0

Vulnerabilities (1)

Known vulnerabilities affecting git-diff, based on data from OSV.

Vulnerabilities affecting git-diff
IDSeveritySummaryAffected versionsPublishedSource
GHSA-6wfj-92cw-88vgCriticalgit-diff: OS command injection vulnerability via crafted strings to the gitDiff APIgit-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.
  • < 2.0.7
GitHub (opens in a new tab)
  • GHSA-6wfj-92cw-88vgCritical
    git-diff: OS command injection vulnerability via crafted strings to the gitDiff API
    • < 2.0.7

    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: CVE-2026-110634

Showing 1-1 of 1 vulnerabilities