CVE-2026-110634
published critical CVSS 4.0 · 9.3git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| danday74 | — | git-diff0 to < 2.0.7 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| danday74 | git-diff | 0 to < 2.0.7 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
5- https://github.com/danday74/git-diff
- https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30
- https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19
- https://github.com/danday74/git-diff/pull/16
- 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
Provider assertions
2VulnCheck · cna
git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2631747fdcd091375e5c7c0db872df3745be545064b2bc86da4d0d6ed52361ba
- Ingested
- 14 Oct 2026, 20:28:04 UTC
- Source record
- Official CVE record