High severity7.5NVD Advisory· Published Sep 4, 2026
CVE-2026-85626
CVE-2026-85626
Description
git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref and object parameters of git_log, git_diff, and git_show tools that lack leading-dash validation. Attackers can inject git command-line options like --output= to write files outside the repository to arbitrary paths accessible by the process.
Affected products
1- Range: <=2.15.1
Patches
Vulnerability mechanics
References
4- github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/operations/commits/log.tsnvd
- github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/utils/command-builder.tsnvd
- github.com/cyanheads/git-mcp-server/issues/53nvd
- www.vulncheck.com/advisories/git-mcp-server-2.15.1-argument-injection-via-git-ref-parametersnvd
News mentions
0No linked articles in our index yet.