Argument Injection Vulnerability in git-mcp-server by Cyanheads
CVE-2026-85626

8.7HIGH

Key Information:

Vendor

Cyanheads

Vendor
CVE Published:
4 September 2026

What is CVE-2026-85626?

The git-mcp-server version 2.15.1 is susceptible to an argument injection vulnerability due to inadequate validation of leading-dash characters in the ref and object parameters used in the git_log, git_diff, and git_show commands. This inadequacy allows attackers to inject custom git command-line options, such as --output=, potentially enabling them to write files to arbitrary paths outside the repository. Such a security flaw poses significant risks, including unauthorized file access and manipulation within systems that utilize this version.

Affected Version(s)

git-mcp-server 0 <= 2.15.3

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

George Chen
.