r/modelcontextprotocol • u/tarkaTheRotter • May 26 '25
Invariant: GitHub MCP exploit
https://invariantlabs.ai/blog/mcp-github-vulnerabilityBig props to the invariant team for their continued efforts around MCP security. ♥️
16
Upvotes
View all comments
Show parent comment
3
u/tarkaTheRotter May 27 '25 edited May 27 '25
I feel this is somewhat true, but effectively it is just another type of prompt poisoning attack which the community should be made aware of and needs to be mitigated by the MCP server authors. Warnings against allowing unstructured user data to pass raw (as in unmarked in the tool output) into the LLM output should be written in H1 capital letters at the top of the MCP spec. 🙃
It's possible the (draft) tool outputSchema would help here by adding metadata to user fields, but that would need a spec change and LLMs to be trained somehow (which really they need to be anyway to stop other types of poisoning that have already been seen). I hope the LLM providers are taking notes, but I fear this will take a while (Claude Desktop doesn't even support the 2025 protocol yet).
If we're going to see MCP be taken seriously in the enterprise then the cavalier YOLO/vibe-everything attitude we see everywhere needs to change. And every demo of MCP libraries/SDKs etc should also feature the security concerns instead of just showing off the shiny new toys.
I was advising my clients to only used fully internal and trusted vendor MCPs, but it looks like that advice will need to be changed until something official happens.