Directory Traversal Vulnerability in mcp-server-git by ModelContextProtocol
CVE-2026-134465

5.8MEDIUM

Key Information:

Vendor

Anthropic

Vendor
CVE Published:
23 November 2026

What is CVE-2026-134465?

A directory traversal vulnerability exists in mcp-server-git prior to version 2026.10.28 that allows attackers to bypass the --repository restriction. This is achieved by placing a .git file with a gitdir pointer in a nested directory within the allowed path. If an attacker can invoke the server’s tools and knows the path of an outside repository, they can read committed content and create new branches, potentially leading to unauthorized access to sensitive data.

Affected Version(s)

mcp-server-git 0 < 2026.10.28

References

CVSS V4

Score:
5.8
Severity:
MEDIUM
Confidentiality:
High
Integrity:
Low
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

ShieldPi (@ShieldPi1)
.