---
id: CVE-2025-68143
aliases:
  - GHSA-5cgr-j3jf-jw3v
  - PYSEC-2026-1621
title: >-
  mcp-server-git's unrestricted git_init tool allows repository creation at
  arbitrary filesystem locations
summary: >-
  mcp-server-git's unrestricted git_init tool allows repository creation at
  arbitrary filesystem locations
severity: medium
vendor: mcp-server-git
product: mcp-server-git
ecosystem: pip
affected:
  - mcp-server-git < 2025.9.25
patched:
  - mcp-server-git 2025.9.25
published: '2025-12-17'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-5cgr-j3jf-jw3v'
references:
  - url: >-
      https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5cgr-j3jf-jw3v
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68143'
  - url: >-
      https://github.com/modelcontextprotocol/servers/commit/eac56e7bcde48fb64d5a973924d05d69a7d876e6
  - url: 'https://github.com/modelcontextprotocol/servers'
tags:
  - osv
  - pip
epss: 0.08134
epssPercentile: 0.94642
ingestedAt: '2026-07-08T18:25:45.962Z'
---

## Overview

In mcp-server-git versions prior to 2025.9.25, the git_init tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools which required an existing repository, git_init could operate on any directory accessible to the server process, making those directories eligible for subsequent git operations. The tool was removed entirely, as the server is intended to operate on existing repositories only. Users are advised to upgrade to 2025.9.25 or newer to remediate this issue.

Thank you to https://hackerone.com/yardenporat for disclosure, @0dd for contributing the fix.

## Affected packages

- `mcp-server-git < 2025.9.25`

## Remediation

Upgrade to a patched release:

- `mcp-server-git 2025.9.25`
