CVE-2026-27735CWE-22

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

Medium · published February 25, 2026

CVSS v4.0
6.4
EPSS
0%
Percentile
39.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.4 · MEDIUM
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
EPSS
0.00465 · 39.3th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-02-25T23:45Z
EPSS history
Timeline
  • 25 FEB 23:45Z
    mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries
    cvelistv5