# CVE-2025-68143: PYSEC-2026-1621 - mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations

Source: https://junglewise.ai/threats/cve-2025-68143-mcp-server-git-s-unrestricted-git-init-tool-allows-repository  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-17  
License: CC BY 4.0 with a link back

CVE-2025-68143 · Severity: high · CVSS 8.8 · Published 2025-12-17

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.

Technologies: [mcp-server-git (PyPI)](https://junglewise.ai/threats/technologies/mcp-server-git). Vendors: [Lfprojects](https://junglewise.ai/threats/vendors/lfprojects), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-68143 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-68143 being exploited in the wild.

**How severe is CVE-2025-68143?** High severity, with a CVSS score of 8.8, published 17 December 2025.

**Which products and versions are affected?** mcp-server-git (PyPI) ECOSYSTEM:introduced=0,fixed=2025.9.25.

**Is there a fix for CVE-2025-68143?** Yes. mcp-server-git (PyPI): upgrade to 2025.9.25 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-68143?** Check whether you run Lfprojects Model Context Protocol Servers or mcp-server-git (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- mcp-server-git (PyPI): upgrade to 2025.9.25 or later

  ```sh
  pip install "mcp-server-git>=2025.9.25"
  ```


## Affected products

- Lfprojects Model Context Protocol Servers
- mcp-server-git (PyPI) ECOSYSTEM:introduced=0,fixed=2025.9.25

## Identifiers

- CVE-2025-68143
- GHSA-5cgr-j3jf-jw3v
- PYSEC-2026-1621

## Related threats

- [PYSEC-2026-2630 - mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries](https://junglewise.ai/threats/cve-2026-27735-mcp-server-git-path-traversal-in-git-add-allows-staging-files)
- [PYSEC-2026-1622 - mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files](https://junglewise.ai/threats/cve-2025-68144-mcp-server-git-argument-injection-in-git-diff-and-git-checkout)
- [PYSEC-2026-1623 - mcp-server-git has missing path validation when using --repository flag](https://junglewise.ai/threats/cve-2025-68145-mcp-server-git-has-missing-path-validation-when-using-repository)
