Skip to content
CVE PROGRAM SOURCE RECORD8.7 High

CVE-2026-85626

git-mcp-server 2.15.1 Argument Injection via Git Ref Parameters

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

cyanheads git-mcp-server

Default version status: unaffected

  • 0 to ≤ 2.15.3affected
pkg:npm/%40cyanheads/git-mcp-server

References