Path traversal in MCP git server's git_add tool stages files outside repository
In mcp-server-git versions before 2026.1.14, the git_add tool did not validate that file paths in the files argument stayed within repository boundaries, so relative paths containing '../' could stage files from outside the repository into the Git index. The issue is fixed in version 2026.1.14 (CVE-2026-27735).
Disclosed 26 February 2026 · Record updated 13 September 2026
Impact
Files outside the intended repository boundary could be accepted and staged into the Git index via the git_add tool.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-27735
