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

Published Updated

Callers can bypass mcp-server-git's --repository restriction via nested gitdir files to read and branch in repositories outside allowed paths.

CVSS score

Medium

5.8/10

CVSS 4.0 · Scored by Anthropic Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
2026.10.28
Attack path
Local or same network
Any signed-in user, no user action

What is CVE-2026-134465?

CVE-2026-134465 is a medium-severity path traversal vulnerability in Anthropic mcp-server-git, published on 23 Nov 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-22

How severe is CVE-2026-134465?

CVE-2026-134465 scores 5.8 out of 10 under CVSS 4.0, which is medium severity. It was scored by Anthropic.

Attack vector
Local
Attack complexity
Low
Attack requirements
Present
Privileges required
Low
User interaction
None
Confidentiality
High
Integrity
Low
Availability
None

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

Which versions are affected by CVE-2026-134465?

1 open source package ship an affected version, including mcp-server-git.

Only installations with a non-default setting turned on are exposed.

PackageAffectedFixed in
mcp-server-git PyPI
pkg:pypi/mcp-server-git
All versions2026.10.28

How do I fix CVE-2026-134465?

Upgrade mcp-server-git to 2026.10.28 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-134465 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-134465 exists.

Sources

Also known as GHSA-7f33-9hc8-6cr8.

Is CVE-2026-134465 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free