---
title: "CVE-2026-110634: git-diff: OS command injection vulnerability via crafted strings to the gitDiff API"
url: https://erroneo.us/security/cve/CVE-2026-110634/
description: "CVE-2026-110634 (git-diff (npm)): git-diff before 2.0.7 contains an OS command injection vulnerability that allows attackers to execute shell commands by…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-10-14
date_modified: 2026-10-27
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-110634"
kev: false
cvss: 9.3
epss: 0.02348
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-110634: git-diff: OS command injection vulnerability via crafted strings to the gitDiff API

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 2.3% , percentile 84: FIRST’s model estimates a 2.3% chance of exploitation activity in the next 30 days, higher than 84% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes git-diff (npm) < 2.0.7, fixed in 2.0.7 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- npm `git-diff` < 2.0.7 → fixed: 2.0.7

## Affected products (CVE record)

- danday74 git-diff: < 2.0.7

## Severity

- VulnCheck CVSS 4.0: 9.3 `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`
- VulnCheck CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.3 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-11-05): 2.35% probability of exploitation activity in the next 30 days; percentile 84.

## Sources

- [github.com](https://github.com/danday74/git-diff/pull/16)
- [github.com](https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19)
- [GitHub Advisory GHSA-6wfj-92cw-88vg](https://github.com/advisories/GHSA-6wfj-92cw-88vg)
- [CVE.org record CVE-2026-110634](https://www.cve.org/CVERecord?id=CVE-2026-110634)
- [NVD entry CVE-2026-110634](https://nvd.nist.gov/vuln/detail/CVE-2026-110634)
- [github.com](https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30)
- [github.com](https://github.com/danday74/git-diff)
- [VulnCheck Advisory: git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings](https://www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings)

---
Source page: https://erroneo.us/security/cve/CVE-2026-110634/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
