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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 26.2%, higher than 98% of CVEs (2026-12-01)
- Published: 2025-06-30T18:50:22.000Z
- Modified: 2026-06-17T09:37:38.317Z
- Also known as: GHSA-3q26-f695-pp76
- Related: CVE-2025-54073
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

@cyanheads/git-mcp-server is an MCP server designed to interact with Git repositories. Prior to version 2.1.5, there is a command injection vulnerability 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.). An MCP Client can be instructed to execute additional actions for example via indirect prompt injection when asked to read git logs. This issue has been patched in version 2.1.5.

(As written by CVE List.)

## Affected

- cyanheads git-mcp-server: < 2.1.5
- @cyanheads/git-mcp-server (npm): before 2.1.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cyanheads/git-mcp-server/security/advisories/GHSA-3q26-f695-pp76> (web)
- <https://github.com/cyanheads/git-mcp-server/commit/0dbd6995ccdf76ab770b58013034365b2d06c4d9> (web)
- <https://github.com/cyanheads/git-mcp-server/releases/tag/v2.1.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-53107> (advisory)
- <https://github.com/cyanheads/git-mcp-server> (package)

## Sources

- CVE List: [CVE-2025-53107](https://www.cve.org/CVERecord?id=CVE-2025-53107), CVE Terms of Use, modified 2025-07-01
- GitHub Advisory Database: [GHSA-3q26-f695-pp76](https://github.com/advisories/GHSA-3q26-f695-pp76), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-53107](https://nvd.nist.gov/vuln/detail/CVE-2025-53107), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-53107 · Whole record: https://cve.day/CVE-2025-53107.json · Rebuilt by cve.day 2026-11-25T22:59:00.456Z
