GHSA-6wfj-92cw-88vg

git-diff: OS command injection vulnerability via crafted strings to the gitDiff API

En bref

Publiée
Mise à jour
CVE
CVE-2026-110634
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

Description

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.

Paquets affectés

PaquetVersions
npm · git-diffintroduced 0, fixed 2.0.7

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database