Arbitrary Command Injection Affecting @cyanheads/git-mcp-server package, versions <2.1.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.15% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-CYANHEADSGITMCPSERVER-10645529
  • published7 Jul 2025
  • disclosed1 Jul 2025
  • creditAlessio Della Libera

Introduced: 1 Jul 2025

NewCVE-2025-53107  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade @cyanheads/git-mcp-server to version 2.1.5 or higher.

Overview

@cyanheads/git-mcp-server is an An MCP (Model Context Protocol) server enabling LLMs and AI agents to interact with Git repositories. Provides tools for comprehensive Git operations including clone, commit, branch, diff, log, status, push, pull, merge, rebase, worktree, tag management,

Affected versions of this package are vulnerable to Arbitrary Command Injection via the child_process.exec function. An attacker can execute arbitrary system commands by supplying specially crafted input parameters that are incorporated into shell command strings without proper sanitization.

CVSS Base Scores

version 4.0
version 3.1