Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.8CVE-2026-134465

CVE-2026-134465: mcp-server-git: nested gitdir file bypasses --repository restriction

Anthropic mcp-server-git

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-134465: medium-severity vulnerability (CVSS 5.8) in Anthropic mcp-server-git.

What happened

Original description from the source: In mcp-server-git before 2026.10.28, the --repository restriction can be bypassed through a nested directory that contains a .git file with a gitdir pointer to a repository outside the allowed path. A caller who can invoke the server's tools, place such a file in the allowed tree, and knows the outside repository's path can read committed content from that repository and create branches in it.

Why it matters

Medium severity, CVSS 5.8.

Affected products and versions

Anthropic mcp-server-git < 2026.10.28

ProductVersionsFixed in
Anthropic mcp-server-git< 2026.10.28—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-22

Relevant change history

  1. Published

    Preliminary advisory published.