{ "actor": "Security researchers (proof-of-concept; original research attributed to Invariant Labs)", "actor_type": "researcher", "added": { "by": "MLSecOpsHub", "date": "2026-10-10" }, "ai_role": "significant", "autonomy_level": "not-applicable", "autonomy_pct": null, "category": "agent-hijack-prompt-injection", "confidence": "primary", "date_disclosed": "2025-05-26", "guardrail_bypass": [ "indirect-prompt-injection" ], "id": "github-mcp-server-private-repo-leak", "impact": "Per the research as explained by Cybernews: an agent on the GitHub MCP server could be induced through a public issue to read private repositories and expose their contents in a public pull request. Proof-of-concept; no in-the-wild victims.", "last_updated": "2026-10-16", "lifecycle_phases": [ "execution", "exfiltration" ], "mappings": { "aiid": [], "cve": [], "mitre_atlas": [ "AML.T0051.001", "AML.T0053", "AML.T0065", "AML.T0085.001", "AML.T0086", "AML.T0093" ], "mitre_attack": [], "owasp_asi": [], "owasp_llm": [] }, "mitigations": [ "Limit agent token scope (especially cross-repository and private access), treat issue and other user content as untrusted data rather than instructions, and require review of actions that publish data." ], "model_families": [ "other" ], "models": [], "name": "GitHub MCP server could be steered via a public issue into leaking private repository contents", "related": [ "gitlost-github-agentic-workflows-repo-leak", "supabase-mcp-database-leak" ], "severity": "medium", "sources": [ { "archive_url": "https://web.archive.org/web/20261012180010/https://invariantlabs.ai/blog/mcp-github-vulnerability", "date": "2025-05-26", "publisher": "Invariant Labs", "title": "GitHub MCP Exploited: Accessing private repositories via MCP", "type": "research-paper", "url": "https://invariantlabs.ai/blog/mcp-github-vulnerability" }, { "archive_url": "https://web.archive.org/web/20260107175010/https://cybernews.com/security/github-mcp-vulnerability-has-far-reaching-consequences/", "publisher": "Cybernews", "title": "GitHub MCP vulnerability explained", "type": "news", "url": "https://cybernews.com/security/github-mcp-vulnerability-has-far-reaching-consequences/" } ], "status": "reported", "summary": "Research first disclosed in May 2025 (by Invariant Labs) and explained by Cybernews showed that an AI agent connected through the GitHub MCP server could be steered by instructions hidden in a public issue into reading private repositories accessible to its token and pasting their contents into a public pull request, making the data public. The work is a proof-of-concept against the researchers' own setup rather than an observed in-the-wild attack; the core weakness is over-broad agent token access combined with treating issue content as instructions. It is catalogued as an agent-hijack prompt-injection product vulnerability.", "targets": { "countries": [], "orgs_affected": null, "records_exfiltrated": null, "sectors": [ "technology" ] } }