---
id: CVE-2025-68143
title: >-
  Model Context Protocol Servers is a collection of reference implementations
  for the model context protocol (MCP)
summary: >-
  Model Context Protocol Servers is a collection of reference implementations
  for the model context protocol (MCP). In mcp-server-git versions prior to
  2025.9.25, the git_init tool accepted arbitrary filesystem paths and created
  Git reposi…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-22
vendor: lfprojects
product: model_context_protocol_servers
affected:
  - model_context_protocol_servers < 2025.9.25
patched:
  - model_context_protocol_servers 2025.9.25
published: '2025-12-17'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T23:10:00.237'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68143'
references:
  - url: >-
      https://github.com/modelcontextprotocol/servers/commit/eac56e7bcde48fb64d5a973924d05d69a7d876e6
    label: security-advisories@github.com
  - url: >-
      https://github.com/modelcontextprotocol/servers/security/advisories/GHSA-5cgr-j3jf-jw3v
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68143'
  - url: 'https://github.com/modelcontextprotocol/servers'
tags:
  - nvd
  - osv
  - pip
epss: 0.08134
epssPercentile: 0.94815
aliases:
  - GHSA-5cgr-j3jf-jw3v
  - PYSEC-2026-1621
ecosystem: pip
ingestedAt: '2026-07-08T18:25:45.962Z'
---

## Overview

Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). 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.

## Affected

- `model_context_protocol_servers < 2025.9.25`

## Remediation

Upgrade past the affected range:

- `model_context_protocol_servers 2025.9.25`

## Package advisory (CVE-2025-68143)

Affected packages:

- `mcp-server-git < 2025.9.25`

Patched in:

- `mcp-server-git 2025.9.25`

Source: https://osv.dev/vulnerability/GHSA-5cgr-j3jf-jw3v
