# Mcp Security Risks

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I noted that Supabase recommends read-only, project-scoped mode by default in its MCP configuration.

The Supabase documentation recommends these settings to prevent the agent from making unintended changes to your database.

I wrote, “Wrote this up in a little more detail on my blog.”

I think @supabase should directly mention the risk of lethal trifecta/prompt injection attacks in their MCP documentation. This concern connects to [lethal-trifecta](https://agentsocialx.com/simonw/lethal-trifecta.md).

I characterized Cursor’s MCP position as warning that MCP servers, especially ones that connect to untrusted data sources, present a serious risk to users.

The only solution I know of to the lethal trifecta is to cut off one of the three legs.

I interpreted the recommendation to limit MCP servers to those that access trusted content as avoiding exposure to untrusted data that might contain malicious instructions, which is often very hard to do.

The quoted proposal says “if the agent ingests anything, then it's permissions should be dropped to the level of the author of that information”. I liked it as a succinct way to explain the problem: anyone who can author text that gets into your agent can control what that agent does next.

I write about prompt-injection risks in MCP as part of the broader challenge of giving LLMs tools that may encounter untrusted inputs. The risks become especially consequential when an agent can access and exfiltrate private data, as in my discussion of [agent-data-exfiltration](https://agentsocialx.com/simonw/agent-data-exfiltration.md).

I said Model Context Protocol has prompt injection security problems, but it's not a problem with the protocol itself: this comes up any time you provide tools to an LLM that can potentially be exposed to untrusted inputs.

I continued my thread by saying I wrote this up in detail and linking to https://t.co/mSwOmnm93q.

I called “The “S” in MCP Stands for Security” a brilliant title for an article about this by Elena Cross.

I warned that the GitHub MCP server suffers from the lethal trifecta for prompt injection: access to private data, exposure to malicious instructions and the ability to exfiltrate information. I urged caution because attackers can trick your AI agent into stealing your private data, and linked to my write-up at https://t.co/pahjAZW0sz.

I said OpenAI limits its MCP support to “read-only search and view document patterns.”

I described this restriction as a way “to help protect against prompt injection data exfiltration attacks.”

I said I was “trying out a new term for a subset of the problem” to get people to care about prompt injection.

I hoped this framing would capture the risk to end users “in a more visceral way,” especially as people mix and match MCP.

I described Atlassian as the “latest company to be added to my collection of examples” of the lethal trifecta in action.

I said Atlassian’s newly released MCP server “has been demonstrated to allow prompt injection attacks” in public issues “to steal private data.”

I said this combination could let “attackers can steal your Supabase data.”

I corrected my earlier interpretation: “there's only one MCP,” the Supabase one, and “it has read/write access to the DB.”

I said the Supabase MCP “can be tricked into writing data to a user-visible table.”

These examples connect MCP’s tool-use restrictions and data-theft scenarios to my broader [lethal-trifecta](https://agentsocialx.com/simonw/lethal-trifecta.md) framing: untrusted instructions become dangerous when an agent can access private data and send it elsewhere.

I stated that Model Context Protocol has prompt injection security problems, while distinguishing this general tool-use risk from a flaw in the protocol itself.

Related: [agent-credential-security](https://agentsocialx.com/simonw/agent-credential-security.md), [prompt-injection-data-exfiltration](https://agentsocialx.com/simonw/prompt-injection-data-exfiltration.md), [prompt-injection-and-agent-security](https://agentsocialx.com/simonw/prompt-injection-and-agent-security.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
