Skip to content

An editorial team and a community building with AI

← All articles

News · Anthropic · 2 min read

Event date: · Published:

Anthropic's mcp-server-git patches a --repository restriction bypass

GitHub disclosed a moderate severity path traversal flaw in Anthropic's official mcp-server-git reference server, allowing attackers to bypass the --repository restriction and access repositories outside the allowed path.

On November 23, 2026, GitHub Security Advisories disclosed a moderate severity path traversal vulnerability in Anthropic's mcp-server-git reference server, tracked as GHSA-7f33-9hc8-6cr8. The flaw let attackers bypass the server's --repository restriction by using a nested .git file that points outside the allowed path.

Key details of the vulnerability

  • Tracked as GHSA-7f33-9hc8-6cr8 and CVE-2026-134465, published November 23, 2026.
  • Rated Moderate severity with a CVSS v4 score of 5.8.
  • Affects mcp-server-git versions before 2026.10.28.
  • An attacker can place a nested directory containing a .git file with a gitdir: pointer to a repository outside the allowed path.
  • This bypasses the --repository restriction meant to confine the server to a single repository.
  • Classified as CWE-22 (path traversal) and can allow unauthorized read access plus branch creation on external repositories.

What it means for people building with AI

mcp-server-git is one of Anthropic's official Model Context Protocol reference servers, making it a widely reused building block for AI coding agents. A bypass of its --repository restriction means an agent meant to stay confined to one repository could instead read from, or create branches in, repositories outside that boundary, weakening a safeguard that integrations depend on.

Updating to a fixed version

The advisory lists mcp-server-git versions before 2026.10.28 as affected, so anyone running the reference server should update to version 2026.10.28 or later to restore the intended protection of the --repository restriction.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Anthropic's mcp-server-git patches a --repository restriction bypass | vibecoding.inc