CVE-2026-27735 mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries
MediumCVSS 6.4
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| lfprojects model context protocol servers | < 2026.1.14 | 2026.1.14 | Fixed |
| pypi mcp-server-git(PyPI) | < 2026.1.14; = 0.2.0; = 0.3.0; = 0.4.0 +11 more | 2026.1.14 | Fixed |
| modelcontextprotocol servers | = < 2026.1.14 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi mcp-server-git(PyPI) | < 2026.1.14 | 2026.1.14 |
| pypi mcp-server-git(PyPI) | = 0.2.0 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.3.0 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.4.0 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.4.1 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.5.0 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.5.1 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.6.0 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.6.1 | No fix listed |
| pypi mcp-server-git(PyPI) | = 0.6.2 | No fix listed |
| pypi mcp-server-git(PyPI) | = 2025.1.14 | No fix listed |
| pypi mcp-server-git(PyPI) | = 2025.11.25 | No fix listed |
| pypi mcp-server-git(PyPI) | = 2025.12.18 | No fix listed |
| pypi mcp-server-git(PyPI) | = 2025.7.1 | No fix listed |
| pypi mcp-server-git(PyPI) | = 2025.9.25 | No fix listed |
| modelcontextprotocol servers | = < 2026.1.14 | No fix listed |
| lfprojects model context protocol servers | < 2026.1.14 | 2026.1.14 |
References
- https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6v patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/modelcontextprotocol/servers/pull/3164 issue-tracking patch
- github.com patch
- github.com product
- pypi.org product
- github.com vendor-advisory