CVE-2026-27735
Model Context Protocol Servers is a collection of reference …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/modelcontextprotocol/servers/pull/3164
- github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6v
- nvd.nist.gov/vuln/detail/CVE-2026-27735
- github.com/modelcontextprotocol/servers/commit/862e717ff714987bd5577318df09858e14883863
- github.com/advisories/GHSA-vjqx-cfc4-9h6v
- nvd.nist.gov/vuln/detail/CVE-2026-27735
- cve.org/CVERecord?id=CVE-2026-27735
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.