{"id":"CVE-2026-27735","published":"2026-02-25T23:45:52Z","modified":"2026-02-26T17:04:59Z","title":"mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries","vendor":"modelcontextprotocol","product":"servers","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00353,"percentile":0.29527,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-vjqx-cfc4-9h6v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/servers/pull/3164","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":5.91},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"servers","versions":["< 2026.1.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-26T17:04:33.296069Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mcp-server-git","vulnerableRanges":["<2026.1.14"],"patched":["2026.1.14"],"from":["GHSA-vjqx-cfc4-9h6v","PYSEC-2026-2630"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal in the git_add tool of mcp-server-git, part of the modelcontextprotocol servers project, where file paths supplied in the files argument are not checked against the repository boundary. An attacker who can get the tool to process crafted relative paths containing ../ sequences can cause files outside the repository to be staged into the Git index, and exploitation requires that a user interact with the affected tool, with no privileges or network access needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:14Z"},"euvd":{"id":"EUVD-2026-8770","exploited":false,"provenance":"source"}}