Source: GitHub MCP exploited (Willison link post)
Willison's May 2025 write-up of Invariant Labs' attack where a malicious public GitHub issue made an agent leak private repo names via a public pull request.
Contents
- What: blog link post summarising research by Marco Milanta and Luca Beurer-Kellner (Invariant Labs)
- Author: Simon Willison
- Date: 2025-05-26
- Original: simonwillison.net/2025/May/26/github-mcp-exploited
Summary
GitHub’s official MCP server lets an agent read issues and open pull requests in any repo the user can access. An attacker files an issue in a public repo with instructions; when the user asks the agent to look at the issues, it reads private repos and publishes their details in a PR on the public repo.
Key claims
- One MCP server alone supplied all three legs of the lethal trifecta: private repos, attacker-written issues, public PRs as the exfiltration channel.
- The attack needed no sophistication.
- No clean fix was known; the advice to users was extreme care when combining capabilities.