---
id: CVE-2026-85626
title: >-
  git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref
  and object parameters of git_log, git_diff, and git_show tools that lack
  leading-dash validation
summary: >-
  git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref
  and object parameters of git_log, git_diff, and git_show tools that lack
  leading-dash validation. Attackers can inject git command-line options like
  --output= …
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'
cwe:
  - CWE-88
vendor: cyanheads
product: git-mcp-server
affected:
  - git-mcp-server <= 2.15.3
published: '2026-09-04'
updated: '2026-09-23'
sourceUpdated: '2026-09-23T17:17:45.803'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85626'
references:
  - url: 'https://github.com/cyanheads/git-mcp-server'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/operations/commits/log.ts
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/utils/command-builder.ts
    label: disclosure@vulncheck.com
  - url: 'https://github.com/cyanheads/git-mcp-server/issues/53'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/git-mcp-server-2.15.1-argument-injection-via-git-ref-parameters
    label: disclosure@vulncheck.com
  - url: 'https://github.com/cyanheads/git-mcp-server/issues/53'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.0027
epssPercentile: 0.19457
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-08T16:55:30.737717Z'
ingestedAt: '2026-09-08T19:08:49.672Z'
---

## Overview

git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref and object parameters of git_log, git_diff, and git_show tools that lack leading-dash validation. Attackers can inject git command-line options like --output= to write files outside the repository to arbitrary paths accessible by the process.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
