CVE-2026-27735
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mcp-server-gitPyPI | < 2026.1.14 | 2026.1.14 |
Affected products
1- cpe:2.3:a:lfprojects:model_context_protocol_servers:*:*:*:*:*:*:*:*Range: <2026.1.14
Patches
1862e717ff714Merge pull request #3164 from 0dd/fix-git-add-validation
1 file changed · +2 −1
src/git/src/mcp_server_git/server.py+2 −1 modified@@ -132,7 +132,8 @@ def git_add(repo: git.Repo, files: list[str]) -> str: if files == ["."]: repo.git.add(".") else: - repo.index.add(files) + # Use '--' to prevent files starting with '-' from being interpreted as options + repo.git.add("--", *files) return "Files staged successfully" def git_reset(repo: git.Repo) -> str:
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/modelcontextprotocol/servers/pull/3164nvdIssue TrackingPatchWEB
- github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6vnvdPatchVendor AdvisoryWEB
- github.com/advisories/GHSA-vjqx-cfc4-9h6vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-27735ghsaADVISORY
- github.com/modelcontextprotocol/servers/commit/862e717ff714987bd5577318df09858e14883863ghsaWEB
News mentions
0No linked articles in our index yet.