6.4Medium

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

modelcontextprotocol servers Published: (8 months ago)

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
lfprojects model context protocol servers < 2026.1.14
modelcontextprotocol servers < 2026.1.14

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:* < 2026.1.14