Advisory

GHSA-6wfj-92cw-88vg

Also known as: CVE-2026-110634

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-10-14 15:32 UTC
Modified
2026-10-27 16:15 UTC

Affected packages and fixes

git-diff

npm · All systems

Affected

  • introduced 0, fixed 2.0.7 (semver)

Fixed versions

2.0.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences