{"schema_version":"1.6.0","id":"XYZ-2026-00274","modified":"2026-11-25T21:48:55Z","published":"2026-11-18T09:17:21Z","summary":"mcp-server-git: a repository's own config could run a command from a read-only tool call","affected":[{"package":{"ecosystem":"PyPI","name":"mcp-server-git"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2026.11.18"}]}]}],"references":[{"type":"WEB","url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00274"},{"type":"FIX","url":"https://github.com/modelcontextprotocol/servers/commit/9acea80e8a91bf9dd64eec5d81cd9441ac3a41e2"}],"credits":[{"name":"CyberXYZ Security Threat Intel Team","contact":["https://cyberxyz.io"],"type":"ANALYST"}],"database_specific":{"cyberxyz":{"status":"confirmed","status_label":"Advisory published","public_state":"full","exploitability_tier":"exploitable","exploitability_tier_label":"Exploitable","first_detected_at":"2026-11-18T09:08:48.273472+00:00","fixed_versions":["2026.11.18"],"upgrade_guidance":"A security fix was released in mcp-server-git 2026.11.18. Upgrade to 2026.11.18 or later.","dispute":{"url":"/api/v1/disputes","subject_type":"advisory","subject_id":"XYZ-2026-00274","ecosystem":"pypi","note":"Think this record is wrong? Tell us; we respond within 2 business days."},"url":"https://packages.cyberxyz.io/xyz/XYZ-2026-00274","writeup":{"what":"Version 2026.11.11 added a defence that lists the filter and merge drivers a repository defines and blanks them, so nothing in the repository can run a program. The pattern that builds the list needed at least one character in the driver name. Git also accepts a driver with an empty name, so those keys were never blanked.","impact":"Command execution with the privileges and environment of the MCP server process, which on a developer machine means that user's tokens, keys and source access. A read-only tool such as `git_status` is enough, and it returns a normal-looking result. The `--repository` restriction does not help, because the malicious repository is the one inside the boundary.","affected":"Users of mcp-server-git before 2026.11.18 who point it at a repository whose `.git/config` was written by someone else: an unpacked archive, a CI artifact, a shared folder or a copied workspace. A plain `git clone` does not carry `.git/config`, so cloning is not a delivery path.","action":"Upgrade to mcp-server-git 2026.11.18. Until then, do not open repositories that arrived with their own `.git` directory from a source you do not trust.","title":"mcp-server-git: a repository's own config could run a command from a read-only tool call","credit":"Reported to the maintainers by @pterpen and fixed by the MCP servers maintainers. Advisory: GHSA-pm7p-vphh-2cg7."},"exploitability_score":76,"severity":"high","cwe":"CWE-78","fix_commits":["9acea80e8a91bf9dd64eec5d81cd9441ac3a41e2"],"feed_leads":[{"source":"ghsa","id":"GHSA-pm7p-vphh-2cg7","published":"2026-11-18T00:00:00+00:00","lead_seconds":null}]},"cwe_ids":["CWE-78"]},"details":"## What was wrong\n\nVersion 2026.11.11 added a defence that lists the filter and merge drivers a repository defines and blanks them, so nothing in the repository can run a program. The pattern that builds the list needed at least one character in the driver name. Git also accepts a driver with an empty name, so those keys were never blanked.\n\n## Impact\n\nCommand execution with the privileges and environment of the MCP server process, which on a developer machine means that user's tokens, keys and source access. A read-only tool such as `git_status` is enough, and it returns a normal-looking result. The `--repository` restriction does not help, because the malicious repository is the one inside the boundary.\n\n## Who is affected\n\nUsers of mcp-server-git before 2026.11.18 who point it at a repository whose `.git/config` was written by someone else: an unpacked archive, a CI artifact, a shared folder or a copied workspace. A plain `git clone` does not carry `.git/config`, so cloning is not a delivery path.\n\n## What to do\n\nUpgrade to mcp-server-git 2026.11.18. Until then, do not open repositories that arrived with their own `.git` directory from a source you do not trust.\n\nReported to the maintainers by @pterpen and fixed by the MCP servers maintainers. Advisory: GHSA-pm7p-vphh-2cg7.","aliases":["GHSA-pm7p-vphh-2cg7"]}