CVE-2026-27735

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

Published Feb 25, 2026 CVSS 4.0 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vjqx-cfc4-9h6v mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries
History
Type Values Removed Values Added
First Time appeared Lfprojects
Lfprojects model Context Protocol Servers
CPEs cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:*
Vendors & Products Lfprojects
Lfprojects model Context Protocol Servers
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Modelcontextprotocol
Modelcontextprotocol servers
Vendors & Products Modelcontextprotocol
Modelcontextprotocol servers
Type Values Removed Values Added
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.
Title mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 26, 2026, 5:04 PM
Reserved
Feb 23, 2026, 6:37 PM
Status
Analyzed
Published
Feb 26, 2026, 12:16 AM
Modified
Jun 17, 2026, 10:27 AM