Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @cyanheads/git-mcp-server
  4. ›
  5. CVE-2025-53107

CVE-2025-53107: @cyanheads/git-mcp-server vulnerable to command injection in several tools

June 30, 2025 (updated July 1, 2025)

A command injection vulnerability exists in the git-mcp-server MCP Server. The vulnerability is caused by the unsanitized use of input parameters within a call to child_process.exec, enabling an attacker to inject arbitrary system commands. Successful exploitation can lead to remote code execution under the server process’s privileges.

The server constructs and executes shell commands using unvalidated user input directly within command-line strings. This introduces the possibility of shell metacharacter injection (|, >, &&, etc.).

References

  • github.com/advisories/GHSA-3q26-f695-pp76
  • github.com/cyanheads/git-mcp-server
  • github.com/cyanheads/git-mcp-server/commit/0dbd6995ccdf76ab770b58013034365b2d06c4d9
  • github.com/cyanheads/git-mcp-server/releases/tag/v2.1.5
  • github.com/cyanheads/git-mcp-server/security/advisories/GHSA-3q26-f695-pp76
  • nvd.nist.gov/vuln/detail/CVE-2025-53107

Code Behaviors & Features

Detect and mitigate CVE-2025-53107 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.5

Fixed versions

  • 2.1.5

Solution

Upgrade to version 2.1.5 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

npm/@cyanheads/git-mcp-server/CVE-2025-53107.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:50 +0000.