Skip to main content
← All vulnerabilities
CVE-2026-27735GHSA-VJQX-CFC4-9H6VPYSEC-2026-2630

mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2026.1.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • modelcontextprotocol servers

    fixed in 2026.1.14

  • mcp-server-gitPyPI

    fixed in 2026.1.14

References 2

GitHub · modelcontextprotocol/servers