Green digital matrix code streaming down a dark screen
Photo via Unsplash

TL;DR: Researchers at OX Security found that Anthropic's Model Context Protocol (the open standard that connects AI agents to tools and data sources) has an architectural flaw that lets attackers execute arbitrary operating system commands through its STDIO transport layer. This isn't a bug. It's how the protocol was designed. The flaw affects every official SDK (Python, TypeScript, Java, Rust), over 7,000 publicly accessible servers, 150+ million package downloads, and has spawned at least 11 CVEs across major AI platforms including LiteLLM, Flowise, LangChain, and Cursor. Anthropic's response: sanitization is the developer's responsibility.

An AI Industry Standard With an Arbitrary Code Execution Problem

Anthropic launched the Model Context Protocol in late 2024 as the universal way for AI agents to talk to external tools. Think of it as USB-C for AI, a single standard so any AI system can connect to any data source, API, or tool. It took off fast. Every major AI framework adopted it. Microsoft, Google, Amazon, and dozens of startups built on it.

The problem: the way MCP connects AI agents to tools (its STDIO transport layer) gives a direct path from configuration to OS command execution. Feed it a malicious input, and it runs whatever commands you want on the host machine [1].

OX Security researchers Moshe Siman Tov Bustan, Mustafa Naamnih, Nir Zadok, and Roni Bar found the flaw baked into Anthropic's official SDKs across Python, TypeScript, Java, and Rust. Not a third-party implementation mistake. The core protocol itself [1].

How the Attack Works

MCP's STDIO transport spawns a new process on the host machine every time an AI agent connects to a tool server. The protocol passes configuration parameters (including the command to run) directly to the operating system's process execution layer. No sandboxing. No input validation. No allowlist of safe commands.

The OX Security team identified four attack categories [1]:

  • Direct command injection: An attacker crafts a malicious MCP server configuration that embeds OS commands. When an AI agent connects, the commands execute. Some paths don't even require authentication.
  • Hardening bypass: Even when developers add input validation, the STDIO architecture provides enough surface area to slip past filters.
  • Zero-click prompt injection: An attacker poisons a data source the AI agent reads. The agent processes the poisoned input, which manipulates its MCP configuration, which triggers command execution. No user interaction needed.
  • Marketplace attacks: A malicious tool gets published to an MCP marketplace. A developer installs it. Hidden STDIO configurations execute on their machine.

That last one should sound familiar. It's the same supply chain attack pattern that hit Vercel through Context.ai and Mercor through a poisoned LiteLLM package. Except this time, the vulnerability is in the protocol standard itself, not a single product.

7,000 Servers. 150 Million Downloads. 11 CVEs.

The numbers tell the story of how far MCP has spread, and how many systems are exposed [1][2]:

  • 7,000+ publicly accessible MCP server instances
  • 150 million+ total package downloads across affected frameworks
  • Up to 200,000 vulnerable instances estimated in total
  • 11+ CVEs assigned so far across major AI platforms

Here's a sampling of what's affected:

  • LiteLLM (CVE-2026-30623): the proxy layer used by thousands of AI applications. Patched.
  • Flowise (CVE-2026-40933): a popular visual AI workflow builder
  • GPT Researcher (CVE-2025-65720): an autonomous research agent
  • Cursor (CVE-2026-30615): the AI-powered code editor used by hundreds of thousands of developers
  • Agent Zero (CVE-2026-30624): an open-source autonomous agent framework
  • LangChain-Chatchat (CVE-2026-30617): part of the most popular AI development framework
  • Windsurf (CVE-2026-30615): another AI coding tool

Only three of the 11+ CVEs have been patched so far. The rest remain open.

Anthropic: "This Is Working as Designed"

When OX Security disclosed the vulnerability, Anthropic confirmed the STDIO execution behavior is intentional. The company characterized it as the expected design of the protocol and said sanitization is the responsibility of developers who build on MCP [1].

That's a bold position for a protocol with 150 million downloads. It's like shipping a universal power adapter that occasionally electrocutes people and saying "grounding is the electrician's responsibility."

The defense makes some technical sense. STDIO is a low-level transport, and some use cases legitimately need process execution. But in practice, developers treat MCP as a safe abstraction layer. They install MCP servers from marketplaces, connect them to AI agents, and assume the protocol handles security. It doesn't.

Five independently reported vulnerability variants had already emerged since 2025, including CVE-2025-49596 in MCP Inspector and CVE-2026-22252 in LibreChat. The pattern was visible before OX Security's research. Anthropic just hadn't changed course [1].

Why This Is a Surveillance Story

Arbitrary code execution on a target machine is the foundation of every commercial spyware tool on the market. NSO Group's Pegasus, Intellexa's Predator, Paragon's Graphite: they all start with RCE. That's how you install the implant. That's how you turn a phone or computer into a listening device.

The MCP vulnerability gives that same capability across 200,000 potential targets. And unlike a traditional zero-day exploit that costs millions to develop, this one is free, documented, and works across every major AI framework.

For a state intelligence agency looking to compromise AI-heavy organizations (tech companies, research labs, defense contractors) this is a gift. Publish a malicious MCP tool to a marketplace. Wait for someone to install it. You're in.

This also connects to the broader pattern we've been tracking: AI tools are becoming the new attack surface. The Vercel breach happened through an AI evaluation tool. The Mercor breach happened through a poisoned AI library. Now the protocol connecting all of these tools has a built-in backdoor.

What to Do Right Now

If You Run MCP Servers

Audit every MCP server configuration on your systems. Check what STDIO commands they're set to execute. Remove any MCP servers you installed from marketplaces or third-party sources until you've verified their configurations. Don't trust default settings.

If You Use AI Coding Tools

Cursor, Windsurf, and other AI editors that use MCP are affected. Check if your tool has released a patch for the relevant CVE. Until then, avoid installing MCP plugins or tool integrations from unverified sources. Treat MCP marketplaces like you'd treat a random APK download: with suspicion.

If You Build AI Applications

Don't rely on MCP to handle input sanitization. Validate every parameter passed to STDIO transport yourself. Use allowlists for executable commands. Run MCP servers in sandboxed environments (containers or VMs) to limit blast radius if they're compromised.

If You're a Security Team

Inventory every MCP integration in your organization. Check the CVE list: LiteLLM (CVE-2026-30623), Flowise (CVE-2026-40933), Cursor (CVE-2026-30615), GPT Researcher (CVE-2025-65720). Patch what you can. Isolate what you can't. This is the AI equivalent of Log4Shell: a protocol-level flaw that'll take months to fully remediate.

References

  1. The Hacker News: Anthropic MCP Design Vulnerability Enables RCE, Threatening AI Supply Chain (April 20, 2026)
  2. OX Security: The Mother of All AI Supply Chains: Critical, Systemic Vulnerability at the Core of Anthropic's MCP (April 2026)
  3. GBHackers: Anthropic MCP Hit by Critical Vulnerability Enabling Remote Code Execution (April 2026)
  4. OX Security: MCP Supply Chain Advisory: RCE Vulnerabilities Across the AI Ecosystem (April 2026)