{"id":"CVE-2026-85626","revision":"5577f4fb6d1f43f2bf0a3c5dba78bb55","records":[{"revision":"5577f4fb6d1f43f2bf0a3c5dba78bb55","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-85626","aliases":[],"title":"git-mcp-server 2.15.1 Argument Injection via Git Ref Parameters","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.","state":0,"publishedAt":"2026-09-04T14:32:16.072+00:00","modifiedAt":"2026-10-01T18:39:48.836+00:00","affected":[{"ecosystem":"Vendor product","name":"git-mcp-server","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"cyanheads\",\n                    \"product\": \"git-mcp-server\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageURL\": \"pkg:npm/%40cyanheads/git-mcp-server\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\",\n                            \"lessThanOrEqual\": \"2.15.3\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"severity":"HIGH"}],"references":["https://github.com/cyanheads/git-mcp-server/issues/53","https://github.com/cyanheads/git-mcp-server","https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/operations/commits/log.ts","https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/utils/command-builder.ts","https://www.vulncheck.com/advisories/git-mcp-server-2.15.1-argument-injection-via-git-ref-parameters"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-85626","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-85626","identifiers":["CVE-2026-85626"]},"retained":false,"historicalAffected":[]}],"coverage":[]}