What’s Vulnerable › Vulnerabilities
CVE-2026-27735: mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-02-26 · updated 2026-06-17
- Weakness: CWE-22
Description
Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2026.1.14, the git_add tool did not validate that file paths provided in the files argument were within the repository boundaries. Because the tool used GitPython's repo.index.add() rather than the Git CLI, relative paths containing `../` sequences that resolve outside the repository were accepted and staged into the Git index. Users are advised to upgrade to 2026.1.14 or newer to remediate this issue.
Affected products
- modelcontextprotocol servers: before 2026.1.14 — fixed in 2026.1.14
How to fix
Upgrade to a fixed version: modelcontextprotocol servers 2026.1.14. Check the vendor advisory for mitigations.
References
- https://github.com/modelcontextprotocol/servers/pull/3164
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6v
Get alerted when CVE-2026-27735 or the next vulnerability affects your stack