mcp-cve-project

CVE-2025-53107 | @cyanheads/git-mcp-server (npm) | High |

CVE Information

Field Value
CVE / NVD CVE-2025-53107
EPSS score 0.221140000 (FIRST EPSS, 2026-06-30)
Date (index) 2025-07-01
Affected product (index) @cyanheads/git-mcp-server (npm)
GHSA ID GHSA-3q26-f695-pp76
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2025-06-30
Ecosystem npm
Component @cyanheads/git-mcp-server
CVSS score 7.5 HIGH CVSS v3.1 (NVD)
CWE CWE-78
Affected versions <= 2.1.4
Fixed versions 2.1.5
Fix status Patched
Exploit status Public PoC reported

CVE Breakdown


What is the vulnerability?

@cyanheads/git-mcp-server vulnerable to command injection in several tools

Attack prerequisites / exposure

The attacker needs control over tool arguments, command parameters, or MCP configuration that is forwarded into a process execution path. Exposure is worst when the service accepts remote requests or untrusted project/config input.

CVE is because of what bug?

Unsanitized parameters passed to child_process.exec

MCP-specific impact / why it matters

Git tool access can become RCE when attacker controls tool arguments. Because the vulnerable component fronts real tools and credentials, successful exploitation can cross from model-facing inputs into filesystem, shell, SaaS, or cloud actions.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here after reviewing the linked source locations.

Fix / Remediation

The remediation tightens input handling so untrusted values cannot change the executed command or code path, typically by validating arguments and removing unsafe shell-style evaluation.

Upstream fix (open source)

Workarounds / mitigations

Detection / verification

Patch

https://github.com/cyanheads/git-mcp-server/releases/tag/v2.1.5