Home

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.

PUBLISHED Reserved 2026-02-23 | Published 2026-02-25 | Updated 2026-02-26 | Assigner GitHub_M




MEDIUM: 6.4CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

Problem types

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Product status

< 2026.1.14
affected

References

github.com/...ervers/security/advisories/GHSA-vjqx-cfc4-9h6v

github.com/modelcontextprotocol/servers/pull/3164

cve.org (CVE-2026-27735)

nvd.nist.gov (CVE-2026-27735)

Download JSON