Directory Traversal Affecting mcp-server-git package, versions <2026.7.10-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.45% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-MCPSERVERGIT-17941914
  • published11 Jul 2026
  • disclosed26 Feb 2026

Introduced: 26 Feb 2026

CVE-2026-27735  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Minimos:latest mcp-server-git to version 2026.7.10-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream mcp-server-git package and not the mcp-server-git package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1