# GitHub MCP / agentic token breadth

incident, `incident:agentic-mcp-tokens`. Page: https://ghtier.com/incidents/agentic-mcp-tokens

An AI agent holding a token that reaches private repositories reads an issue someone wrote on a public repository, follows the instructions hidden in it, and copies private content into a public pull request or comment; no stolen credential is needed.

**Abused:** [Contents: Read (repository)](https://ghtier.com/tier/permissions/contents-read.md) (Tier 3), [Pull requests: Write (repository)](https://ghtier.com/tier/permissions/pull-requests-write.md) (Tier 2)

**Used:** [Get an agent to copy private code into public](https://ghtier.com/attack-paths/technique-agent-leak.md) (Tier 2)

**Sources:**
- [GitHub MCP exploited: accessing private repositories via MCP](https://invariantlabs.ai/blog/mcp-github-vulnerability)
- [github-mcp-server issue #844: token scope reproduction](https://github.com/github/github-mcp-server/issues/844)
- [Public GitHub issue could trick agentic workflows into leaking private repo data](https://thehackernews.com/2026/07/public-github-issue-could-trick-github.html)
- [MCP horror stories: the GitHub prompt injection data heist](https://www.docker.com/blog/mcp-horror-stories-github-prompt-injection/)
- [AI GitHub agents: how one issue leaked private repos](https://www.upguard.com/blog/ai-github-agents-issue-leaked-private-repos)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
