CVE-2026-134465

mcp-server-git: nested gitdir file bypasses --repository restriction

Published Nov 23, 2026 CVSS 4.0 · 5.8 Medium EPSS n/a KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title mcp-server-git: nested gitdir file bypasses --repository restriction
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N'}

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
Anthropic
Published
Updated
Nov 23, 2026, 4:00 PM
Reserved
Nov 21, 2026, 12:17 AM
Status
Received
Published
Nov 23, 2026, 4:17 PM
Modified
Nov 23, 2026, 4:17 PM