Two years in, the hands arrived before the rules
Two years ago today, Anthropic announced the Model Context Protocol: an open standard, built on JSON-RPC, that lets a model talk to tools and data through one protocol instead of a custom connector for every source. The problem it solved was real — every model needing a custom integration for every data source is an N-by-M problem, and MCP collapsed it. The history since is a straight line up. OpenAI adopted it in March 2025. Anthropic donated it to the Agentic AI Foundation in December 2025. The July 2026 revision rebuilt the core as stateless, and the enterprise authorization extension went stable the month before.
The TypeScript SDK went from 13,822 npm downloads in its launch month to 295.6 million in October 2026. Python and TypeScript together logged about 656 million downloads in the 30 days to mid-November 2026. The official registry, which opened in preview in September 2025 with 456 servers still listed from that month, held 64,935 servers on November 15, 2026 — and October alone added 16,264 new ones. A Stacklok survey in December 2025 found 45% of large software firms already running MCP in production.
That is the adoption story. The security story tracked it, step for step, from the first month. The protocol gave agents hands in two years. It still has no built-in way for the model to tell data from instructions, or for a server to prove what it may do. Every number that follows is from a named source, linked inline.


The incident record: twenty months, one pattern
The first public warning came five months after launch, and it named the attack class that still defines MCP security. On April 1, 2025, Invariant Labs showed that MCP tool descriptions — the text a server returns when an agent lists its tools — enter the agent’s context as trusted content. Their proof of concept was an ordinary-looking calculator tool whose description quietly told the model to read ~/.ssh/id_rsa and the agent’s own mcp.json, which holds credentials to other MCP servers, and send both to an attacker-controlled server. The model complied, because complying with tool descriptions is what models do. The same disclosure added two follow-ons: the rug pull, where a server passes review clean and changes its definitions after trust is granted, and tool shadowing, where one server’s description instructs the agent on how to misuse a different server’s tools. In their WhatsApp demonstration, a poisoned trivia-game server got the agent to pull the user’s chat history through the legitimate WhatsApp server in the same session and send it to an attacker’s number — above the encryption layer, through the agent’s own legitimate access.
Eight weeks later, Invariant showed the same shape without any poisoned tool at all. On May 26, 2025, they published the GitHub MCP case: an attacker files a malicious issue on a public repository; the user asks their agent to review open issues; the agent reads the injected issue, pulls data from the user’s private repositories, and opens a pull request on the public repository containing it. In the demonstration, with Claude 4 Opus, the leaked data included a private repository name, a relocation plan, and a salary. The researchers were explicit that this was not a flaw in the GitHub server’s code. It is what happens when one token reaches public and private data at the same time and the agent cannot tell instructions from data. They called it a toxic agent flow, and their proposed fix was architectural: one repository per session.
The summer of 2025 turned research into exposure counts and CVEs. Trend Micro’s July 2025 internet scan found 492 MCP servers publicly reachable with no client authentication and no traffic encryption, together exposing 1,402 tools — more than nine in ten offering direct read access to whatever sat behind them. The same season produced the first catalogued MCP CVEs: CVE-2025-6514 in mcp-remote, a command injection through a malicious OAuth authorization endpoint scored 9.6, disclosed by JFrog; CVE-2025-49596 in the MCP Inspector, where missing authentication between client and proxy allowed code execution from a malicious website, fixed in 0.14.1; and CVE-2025-53109 and CVE-2025-53110 in the official filesystem server, where symlink and path-prefix checks let access escape the allowed directories, fixed in 2025.7.1. In July, Check Point disclosed CVE-2025-54136 — “MCPoison” — in Cursor: approval was bound to a config entry’s name rather than its contents, so a benign entry approved once could later be swapped for a malicious command with no new prompt. It carries a CVSS score of 8.8 in the National Vulnerability Database.
September brought the first confirmed malicious MCP server in the wild. A package called postmark-mcp on npm impersonated Postmark’s email service, ran cleanly for fifteen versions, and then version 1.0.16 added a single line on line 231: a hidden BCC to an attacker-controlled address. Every email sent through the server — password resets, invoices, internal memos — was silently copied out. It had roughly 1,500 weekly downloads and, by Koi Security’s estimate when it flagged the package on September 25, 2025, was integrated into the workflows of 300 to 500 organizations, moving an estimated 3,000 to 15,000 emails per organization per day. Postmark, which had not published an npm package at all, disavowed it publicly. The publisher deleted the package from npm — which removed nothing from the machines that had already installed it.
The rest of the record reads like a ratchet. Astrix’s October 2025 study of more than 5,200 MCP repositories estimated roughly 20,000 server implementations across GitHub: 53% used static keys, only 8.5% used OAuth, and 79% stored secrets in environment variables. Researchers documented 30 CVEs against MCP servers and related infrastructure in the first 60 days of 2026 alone. In February 2026, an internet-wide scan found more than 8,000 MCP servers reachable from the public internet. In March 2026, a STRIDE threat-model analysis published on AlphaXiv counted 57 distinct threats across five MCP components, with tool poisoning the most prevalent client-side vulnerability. In April 2026, an OX Security advisory documented remote code execution across six live production platforms — LiteLLM, LangChain, LangFlow, Flowise, Windsurf, and Cursor — through the STDIO execution model, and the same month researchers published “Comment and Control”: an instruction typed into a pull-request title was read by an agent, which ran shell commands and posted its own API key and GitHub token as a comment. Cisco’s Idan Habler disclosed CVE-2026-21852, “MemoryTrap,” in April 2026: a poisoned MEMORY.md file can outlive a session, persist in a shared memory store, and be reloaded by unrelated sessions and users.
The official SDKs have not been spared. The Python SDK alone carries CVEs published across 2025 and 2026, including a DNS-rebinding flaw (CVE-2025-66416, December 2025), session and task-handling flaws (CVE-2026-52869, CVE-2026-52870, July 2026), an authentication bypass through missing token-audience validation (CVE-2026-116684, October 2026), and an OAuth flaw published November 16, 2026 in which the client could send credentials to an authorization server chosen by the MCP server (CVE-2026-115563, rated high). The MCP project’s own repositories accumulated 87 security advisories between January and November 15, 2026, 39 of them high or critical. The National Vulnerability Database held 382 MCP-related CVE records as of October 21, 2026.
What the numbers say
The adoption curve and the exposure curve are the same curve, nine months apart. Trend Micro’s follow-up scan, published April 28, 2026, found 1,467 exposed MCP servers — nearly triple the 492 of July 2025 — and the stakes had escalated with the count. Of the 1,467, 1,227 still ran the legacy Server-Sent Events transport the project had long deprecated. Seventy hosts exposed an execute_sql tool with no authentication, including at least three exposing patient medical records. And the researchers found critical command-injection flaws in unofficial AWS and Azure MCP servers — CVE-2026-5058 and CVE-2026-5059 in aws-mcp-server, both scored 9.8 — that turn an exposed server into a path to the cloud account itself: code execution on the host, then the instance metadata service, then the attached IAM role. Trend Micro also examined more than 19,000 MCP server codebases and found about 48% telling users to store secrets in .env files or plaintext JSON. Put next to a server open to the internet, the attacker may not need an exploit at all.
Other measurements keep landing in the same place. Censys counted 12,520 internet-accessible MCP services on April 28, 2026, and the count passed 21,000 by early May. Knostic found 1,862 through Shodan in 2025, and every one of the 119 it checked by hand would list its tools without authentication. An academic study using a tool called Corvus confirmed 640 production MCP servers in July 2026 and tested 414 of them in depth: 91.8% lacked OAuth. The counts measure different things — Trend Micro counts servers with neither authentication nor encryption, Censys counts every reachable service — and that is itself the point: whichever definition you use, the exposed population is in the thousands and growing.

The code audits are worse than the exposure counts, because they show the problem is not only deployment. Endor Labs analysed 2,614 MCP implementations and found 82% using file operations prone to path traversal, 67% using APIs related to code injection, and 34% exposing APIs susceptible to command injection. Equixly found command injection in 43% of the servers it tested and server-side request forgery in 30%. BlueRock found 36.7% of more than 7,000 servers potentially vulnerable to SSRF. Enkrypt AI found critical vulnerabilities in a third of the 1,000 servers it tested. AgentSeal found at least one finding in 66% of 1,808 servers. A framework called VIPER-MCP swept roughly 40,000 MCP server repositories and surfaced 106 zero-day vulnerabilities yielding 67 CVEs. Different samples, different methods, different flaw classes — read them as independent measurements of the same ecosystem, not one census. The one number that is small is the one that should worry you most: across 1,899 servers, researchers measured tool poisoning at about 5.5%. Small, because poisoning is hard to detect by scanning code — it lives in the text, not the logic — and the benchmark built to measure it, MCPTox, threw real poisoned tools at 20 models across 45 servers and 353 authentic tools and recorded attack success above 70% against some frontier models.

The newest measurement, and the most useful, is OX Security’s “Plug and Pray” report, published November 23, 2026, built on 542,207 components analysed between July and October 2026 across npm, PyPI, MCP servers, and Agent Skills. Its headline is a shift in kind, not degree: prompt injection and tool poisoning appeared in 22% of flagged MCP servers, against 16% for install- or import-time code execution. In Agent Skills the gap was wider: none of the 179 flagged Skills executed code at install, yet 44% contained instructions directing agents to send data out. And the trust signals underneath are thin: OX could identify a source owner for only 69.8% of MCP servers, against 92.8% of npm packages; 67% of the 834 flagged servers ran on publisher-controlled infrastructure where the deployed code could not be independently verified; 82% of researcher-confirmed malicious components were malicious from their first observed version; and two publisher accounts were responsible for 44% of flagged MCP servers, one of them publishing 2,364 servers in 17 days. A registry that adds 16,000 servers a month, a third of them unattributable, is not a supply chain you can review by hand.
What the spec covers — and what it doesn’t
The protocol has not stood still. The March 2025 revision added OAuth-based authorization and the Streamable HTTP transport. The June 2025 revision tightened sign-in rules and added structured tool output. The July 2026 revision — the largest change yet — made the core stateless, deprecated dynamic client registration in favour of client ID metadata documents, and set MUST-level requirements for consent, token audience, and state handles in the security best practices. The Enterprise-Managed Authorization extension went stable in June 2026, with adoption by Anthropic, Microsoft, and Okta. In May 2026 the NSA’s AI Security Center published its first formal guidance on MCP, a 17-page Cybersecurity Information Sheet: “MCP’s rapid proliferation has outpaced the development of its security model,” and compared it to early web protocols, adopted at scale before their security implications were understood. An IETF Internet-Draft on MCP security considerations followed in June 2026.
None of that closes the three gaps the research keeps returning to, because they are architectural, not implementation bugs. First, there is no capability attestation: a server claims whatever permissions it wants, and nothing in the protocol lets a client verify the claim. Second, bidirectional sampling has no origin authentication, so a server can inject prompts back into the agent. Third, trust propagates implicitly across multi-server configurations — the WhatsApp rug pull worked because the poisoned server and the trusted server shared one agent context. A paper by Maloyan and Namiot measured the cost of those gaps directly: across 847 attack scenarios and five server implementations, MCP amplified attack success by 23–41% over equivalent non-MCP integrations. Their proposed fix, AttestMCP, cut attack success from 52.8% to 12.4% at a median latency cost of 8.3 milliseconds. It is a proposal, not a deployed control — but it is the clearest evidence available that attestation works when it is present.

The NSA’s framing is the one to carry into a budget conversation: MCP is promising but immature, and its security depends on implementation discipline, not on protocol guarantees. The spec defines the protocol, not the trust boundary. Everything after this paragraph is implementation discipline.
What AI security teams should focus on
First, inventory. You cannot govern what you have not counted, and MCP is the rare technology that arrives without a procurement record: developers install servers in an afternoon to make an assistant useful, and almost none of them go through the review a new public API would trigger. Find every MCP server and client in the environment — local configs, remote endpoints, coding assistants, and the Agent Skills that now travel with them. Treat the registry numbers above as your warning: if your developers can add 16,000 servers a month to a public registry, they can add a dozen to your network without telling you.
Second, allowlist and pin. Only approved servers, and pin the approved tool definitions by hash. The rug pull exists precisely because approval is a point in time and definitions change after it — Cursor’s MCPoison CVE is the production case. Re-review on every change, and treat a definition change on an approved server as a new approval, not a patch.
Third, no unauthenticated remote servers, anywhere, for any reason. OAuth 2.1 with token-audience validation is the expected pattern under the current spec; the Corvus finding that 91.8% of tested production servers lacked OAuth is the gap to close first. Retire the deprecated SSE transport — 1,227 of Trend Micro’s 1,467 exposed servers still ran it — and block MCP endpoints at the network edge by default.
Fourth, scope the credentials as if the agent will be tricked, because it will be. Least-privilege, short-lived tokens per server, brokered outside the agent runtime — never in .env files or plaintext JSON, which about half of server codebases still recommend. One token should never reach both public and private data; the GitHub case is the proof of why, and the fix Invariant proposed — one repository, one session, one scope — is the cheapest control in this list.
Fifth, scan the descriptions, continuously. Tool poisoning fires at listing time, before any tool is called and before any approval prompt. Static scanning at install is necessary and insufficient; you need runtime scanning of tool descriptions across the full session, drift detection against the pinned definitions, and an audit trail that ties every tool call to the definition that was disclosed for it. The Ox finding that 82% of confirmed malicious components were malicious from the first version means version monitoring alone will not catch most of them.
Sixth, constrain what the agent can do with the tools it has. Approvals for consequential actions, with the full tool input visible — not just the tool name. Egress controls and data-loss prevention on tool outputs, because the exfiltration in every case above travelled through the agent’s legitimate access. And log everything: every tools/list and every tools/call, with the definition hash, into the SIEM. If you cannot reconstruct which definition was live when a call ran, you cannot investigate a rug pull after the fact.
Seventh, treat Agent Skills as code. Ox found no flagged Skill executing code at install — and 44% telling the agent to send data out. Skills go through the same allowlist, the same description review, and the same drift detection as servers, because they are the same attack surface with a friendlier name.
Eighth, patch the SDKs like the infrastructure they are. The Python SDK had high-severity CVEs in July, October, and November 2026; the TypeScript SDK had a denial-of-service flaw in the same window; the official repositories collected 87 advisories in 2026. These are not edge packages — they are the libraries your agents are built on.
Finally, test the way the attackers do. MCPTox-style benchmarks — real poisoned tools against your own models and clients — belong in the same place as your phishing simulations: a recurring control, not a one-off assessment. The benchmark’s result, attack success above 70% against some frontier models, is not a reason to despair. It is a baseline to measure your controls against, and the AttestMCP result is the reason to believe the baseline can move: the protocol’s gaps are measurable, and the fixes, where they exist, are cheap.
Two years ago, MCP solved a real problem, and the adoption numbers say it solved it well. The security numbers say something else: the ecosystem grew faster than its trust model, the servers your developers install are a supply chain you have not inventoried, and the attacks that work against it do not need to break anything — they only need the agent to do what it was built to do. The protocol gave agents hands. The job now is to decide, server by server, tool by tool, what those hands are allowed to touch.





Leave a Reply