Notice
incidentAGT-INC-2026-0007
Invariant Labs: GitHub MCP server toxic agent flow leaks private repo data via malicious public issue
A behavioral incident: no malicious file, but an agent did something it should not have.
What happened
- Agent
- Claude Desktop with github-mcp-server
- Date
- 2025-05
- Trigger
- prompt injection
- Impact
- data leak
- Root cause
- Per Invariant Labs, a malicious issue in a public repo carries hidden instructions; when the user asks the agent to review issues it pulls private repo data and publishes it in a public pull request. Described as architectural, not a server bug; exacerbated by 'Always Allow' approvals.
What would have stopped it
- per-session repository scoping
- human approval of cross-repo writes
- untrusted-input data-flow controls
Sources
- invariantlabs.ai https://invariantlabs.ai/blog/mcp-github-vulnerability
Wrong or outdated? Open an issue or PR against corpus/entries/AGT-INC-2026-0007.json.