CVE-2026-27735 Details
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.
A path traversal vulnerability has been identified in the 'mcp-server-git' component of Model Context Protocol Servers, affecting versions prior to 2026.1.14. The issue arises because the 'git_add' tool failed to validate file paths within repository boundaries. Instead of using the Git command-line interface, the tool relied on GitPython's 'repo.index.add()' method, which does not enforce working-tree boundary checks for relative paths. This oversight allowed paths containing '../' sequences that resolved outside the repository to be accepted and staged into the Git index. Consequently, sensitive files could potentially be exfiltrated through subsequent commit and push operations.
Users are advised to upgrade to version 2026.1.14 or newer. The fix involves changing the path validation method to use the Git command-line interface, which properly rejects out-of-tree paths.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/modelcontextprotocol/servers/pull/3164 | [email protected] | Issue TrackingPatch |
| https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6v | [email protected] | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| lfprojects model context protocol servers | < 2026.1.14 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 14, 2026 | Initial Analysis | [email protected] |
| Feb 26, 2026 | New CVE Received | [email protected] |