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


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
7.03% (94th 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-17944570
  • published11 Jul 2026
  • disclosed17 Dec 2025

Introduced: 17 Dec 2025

CVE-2025-68145  (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.

In mcp-server-git versions prior to 2025.12.17, when the server is started with the --repository flag to restrict operations to a specific repository path, it did not validate that repo_path arguments in subsequent tool calls were actually within that configured path. This could allow tool calls to operate on other repositories accessible to the server process. The fix adds path validation that resolves both the configured repository and the requested path (following symlinks) and verifies the requested path is within the allowed repository before executing any git operations. Users are advised to upgrade to 2025.12.17 upon release to remediate this issue.

CVSS Base Scores

version 3.1