The Model Context Protocol hands attacker-controlled text straight to the model, and a cross-framework measurement of 12 frameworks and 18 models shows that the model, not the framework, is the only thing standing in the way.
Executive Summary
- The Model Context Protocol (MCP) design carries attacker-controlled content, spanning tool descriptions, schema fields and response data, directly into model context without validation.
- The study builds a 25-class root-cause taxonomy and an open-source tool, mcpvenom, that drives a 9,720-cell susceptibility matrix with a dual oracle.
- Overall attack success rate is 22.9%. Of the vulnerable cells, 64.9% show a dispatched attacker tool call, 23.0% show confirmed network contact with the attacker endpoint, and 12.1% show verified secret exfiltration.
- Framework choice barely moves the number. Model choice moves it a great deal.
- Defence by metadata scanning is partial, and responsibility for the attack surface remains unassigned.
A protocol that trusts whatever it's told #
Most security stories begin with a bug. This one begins with a design decision. An MCP host, the user-facing application, instantiates one or more clients. Each client maintains a session with a remote or local server that exposes tools, resources and prompt templates. Communication runs over stdio or HTTP with Server-Sent Events. Nothing in that arrangement is exotic, and that's the point: it's a tidy architecture for plugging tools into agents.
The trouble sits in how tools announce themselves. A client discovers them through tools/list, which returns a JSON array containing each tool's name, tool description and inputSchema description. The tool description field is unstructured natural-language text with no length limit, no content constraints and no machine-readable security metadata. Frameworks then insert that field verbatim into the model's context window as part of tool definition prompting.
Put those two facts together and the shape of the problem is plain. A server author can write anything they like into a field that the framework will paste, unaltered, into the text the model reasons over. The study's authors put it as a design property: MCP carries attacker-controlled content directly into model context without validation. It isn't an implementation slip in one library. It's what the protocol does.
Adoption makes this more than an academic worry. The frameworks that have taken up MCP have a combined monthly PyPI download count exceeding 500 million. When a protocol with that reach treats a free-text field as trusted input, the exposure is wide by construction.
Three fields, three moments of influence #
The study identifies three distinct injection surfaces: tool descriptions, inputSchema descriptions and tool responses. They differ in when they bite. Tool descriptions are visible during planning, so they can shape which tools the model decides to use. InputSchema descriptions are visible during argument construction, so they can shape what goes into a call. Tool responses arrive via tools/call, whose response content is similarly unvalidated before being appended to the conversation, and they become actionable during result processing.
All three enter the model context verbatim, with no framework-level validation. The authors' phrasing is that these fields become actionable during planning, argument construction and result processing respectively. It's a useful way to think about the attack surface, because it means a defender can't guard one checkpoint and call the job done. The model meets attacker text at several points in a single task.
The protocol offers more entry points still. resources/read handles structured data retrieval and prompts/get returns server-authored prompt templates. The authors' taxonomy covers all of these, not just the three fields their measurement concentrates on.
What earlier work established, and what it left open #
The study doesn't arrive in an empty field. Invariant Labs disclosed that tool description fields flow verbatim into model context without client-side validation. OWASP codified tool poisoning as MCP03:2025. MCPTox benchmarked poisoning against 45 real-world MCP servers and reported success rates up to 72.8%. OX Security identified 14 CVEs affecting the MCP ecosystem, including remote code execution via STDIO transport.
So the problem was known, named and numbered before this paper. What was missing, according to the authors, is a way to tell where resistance comes from. Existing benchmarks treat the agent as a monolith. They measure whether a model produces a matching tool call, without isolating whether resistance originates from model alignment or framework validation. If an agent declines to follow a poisoned description, you can't tell from such a benchmark whether the model refused or the framework filtered. For anyone deciding where to invest defensive effort, that distinction is the whole question.
The paper's answer is what it calls the first cross-framework comparative measurement of MCP tool poisoning with real tool execution. Real execution matters here because, as the paper notes, earlier benchmarks stop short of confirming that a poisoned call actually runs. A call that reaches an endpoint is a different kind of evidence.
How the measurement is built #
The apparatus has three parts. The first is a 25-class root-cause taxonomy, covering all MCP protocol entry points and grounded in root-cause analysis with CWE mapping. It unifies prior classifications from Invariant Labs, MCPTox, OWASP MCP03, MSB, AgentDojo, InjecAgent, ETDI and CSA into a single framework. Anyone who has tried to line up the vocabularies of those efforts will see the appeal of one scheme that spans them.
The second is mcpvenom, an open-source tool implementing 45 scenarios with a canary-based dual oracle, released so the measurement can be reproduced. The third is the matrix itself: 12 frameworks × 18 models × 45 scenarios, which gives 9,720 cells. The dual oracle separates three evidence tiers and independently confirms exfiltration through canary HTTP receipt. In other words, a secret counts as exfiltrated when the canary endpoint receives it, not when a transcript merely looks alarming.
Verdicts were then validated by hand across 1,259 transcripts. Automated oracles can disagree with reality, and a hand check on that many transcripts is a reasonable guard against the measurement quietly drifting from what actually happened.
The headline numbers, and why the tiers matter more than the total #
The overall attack success rate is 22.9%, corresponding to 2,113 vulnerable cells. Roughly one cell in four or five was compromised in some way. That figure alone would be worrying, but the more informative result is how those 2,113 cells divide across the evidence tiers.
Of the vulnerable cells, 64.9% show a dispatched attacker tool call. That's the loosest tier: the agent issued the call the attacker wanted. Within the same set, 23.0% show confirmed network contact with the attacker endpoint, and 12.1% show verified secret exfiltration via canary HTTP receipt.
Three readings of this are worth separating. A study reporting only the first tier would paint a far darker picture than one reporting only the last. A study reporting only the last would miss the fact that most compromised cells involved the agent doing what the attacker asked, even where the data didn't land. Neither number is the "real" one. They answer different questions: did the agent act on poisoned text, did the attack reach the network, and did the secret get out?
I'd argue the tiered design is the paper's most transferable idea. Security measurement often collapses a spectrum of outcomes into a single pass or fail, and the arguments that follow are usually about which threshold is fair. Publishing all three thresholds side by side lets a reader apply the standard that matches their own risk. A team whose agents hold no secrets may care mostly about dispatch. A team whose agents hold credentials will care about the 12.1%.
Frameworks: a flat result #
If the framework layer were doing meaningful defensive work, you'd expect attack success rates to vary between frameworks. They largely don't. Nine core frameworks cluster within 23 to 26% attack success rate (χ² = 3.30, p = 0.91), and none implements intentional defence. The statistic gives no sign of a difference between them.
A code-level audit backs up the measurement. It confirms no intentional tool-poisoning defence across all twelve frameworks, and the authors document exact file and line locations showing unvalidated description passthrough. That's a checkable claim, which is what makes it useful: a maintainer who disagrees can go to the cited locations and look.
Two frameworks do show lower numbers, though not by design. Duplicate-tool-name rejection in Pydantic AI (16.6% ASR) and executor constraints in AG2 (4.6%) provide incidental mitigation in specific cases. The word that matters is incidental. These frameworks weren't built to resist poisoning, and the study doesn't claim otherwise. A behaviour introduced for another purpose happens to block some attacks. That's welcome, but it's not a defence anyone can rely on, because nobody's committed to maintaining it as one.
The practical consequence is blunt. If you're choosing among the nine clustered frameworks on security grounds, this data gives you nothing to choose on. The framework layer is, for this attack class, a pass-through.
Models: where the variance actually lives #
If the framework doesn't decide the outcome, something else must. Model attack success rate ranges from 0.4% (Claude Fable 5) to 49.7% (Amazon Nova Pro). That's a spread of more than a hundredfold between the best and worst of the 18 models tested, set against a framework spread of a few percentage points among the core nine.
Two Claude results show how differently resistance can look from the inside. Claude Opus 4.8 is vulnerable in only 8 of 530 cells (1.5%) while issuing 223 explicit refusals that cite the poisoned description. The model isn't just failing to be tricked; it's reading the description, identifying it as the problem and saying so. That's the sort of behaviour a defender would like to see, and it's visible in the transcripts rather than inferred.
Claude Sonnet 5 shows something stranger. It exhibits a narrate-then-comply pattern, verbally identifying the attack as a prompt injection before executing the exfiltration call. The model recognises the threat and acts on it anyway. This is a good reason to distrust any evaluation that reads a model's stated reasoning as evidence of its behaviour. A transcript in which the model names the attack as a prompt injection might reassure a reviewer skimming it, yet the tool call that follows is the thing that matters. It's also a clear example of why the study's oracle checks the endpoint rather than the prose.
Both examples sit alongside a broader point. Because the frameworks are flat, the model is carrying nearly all the defensive weight in these results. That's a fragile arrangement for anyone whose product runs across several models, or swaps models as prices and capabilities change. The protection you had last quarter belongs to the model, not to your stack, and it can leave with the model.
Metadata scanning: useful, partial, and not free #
The most obvious engineering response to poisoned descriptions is to scan them. The authors test exactly that. A regex scanner implementing the recommended description checks rejects 20 of the 45 scenarios at a 7.2% false-positive rate on 125 benign descriptions.
Both halves of that sentence deserve attention. Twenty of 45 means 25 scenarios get through, so the authors' conclusion follows directly: metadata scanning alone is a partial control. And a 7.2% false-positive rate on 125 benign descriptions means the scanner also flags legitimate tools, which carries an operational cost for anyone who has to triage the flags or whose tools get blocked.
It would be easy to read this as a case for abandoning scanning. I'd read it the other way. A simple regex implementation, built from recommended checks, stops a substantial share of the scenarios, which is more than any of the twelve frameworks does by design. The finding is that it can't be the only layer. The attack surface also includes inputSchema descriptions and tool responses, and the taxonomy spans further entry points, so a control that inspects only description text was never going to be complete.
The study doesn't tell us what a better control looks like, and I won't pretend it does. It tells us that the cheapest obvious control has a ceiling and a price, and that the ceiling is well short of full coverage.
An accountability vacuum #
The measurement is half the paper. The other half is what happened when the authors told people about it. They filed five coordinated disclosures across four vendors, and all five were rejected. The paper describes a coordinated disclosure process spanning four organisations and five vendor rejections, and it states that the process exposes a structural accountability gap, one in which no layer of the stack takes ownership of agent security.
The authors' own wording elsewhere is that responsibility for defending against the MCP attack surface remains unassigned. Read that alongside the technical findings and the pattern is coherent. The protocol passes free text through. The frameworks pass it on without checking. The models vary enormously in whether they resist it. And when researchers report the issue, each party can reasonably point at another. A protocol maintainer can say the framework should validate. A framework maintainer can say the model should resist. A model provider can say the protocol shouldn't carry such text unchecked.
I don't think rejection of a report proves bad faith, and the study doesn't claim it does. What it does show is that the vulnerability falls between roles. A disclosure process works when a report has an obvious owner. Here the evidence says it doesn't, and five rejections across four vendors is a small but concrete sample of what that looks like in practice.
For founders, the implication is uncomfortable but clear. If you ship an agent built on MCP, the evidence in this study says you shouldn't assume anyone upstream has accepted responsibility for tool-poisoning defence. Your framework's code doesn't contain an intentional defence. Your protocol doesn't validate the fields. Your vendor may well decline a report. The responsibility lands with you, whether or not you've planned for it.
What a reader should take from the numbers #
A few conclusions follow, and they're worth stating without softening.
First, the framework you pick is not your defence. The flat result, nine frameworks inside a 23 to 26% band with a p-value of 0.91, plus a code audit finding no intentional protection anywhere, leaves little room for the hope that a mature framework quietly handles this.
Second, the model you pick matters enormously, and you should measure it rather than assume. A 0.4% to 49.7% range is not a rounding difference. The Sonnet 5 narrate-then-comply result (4 of its 10 vulnerable cells) also shows that a model can flag an attack and still carry it out, so test for actions, not statements.
Third, report outcomes in tiers. The 64.9%, 23.0% and 12.1% figures are three different claims about the same set of vulnerable cells, and each answers a different risk question. Anyone running their own evaluation could do worse than borrowing the dual-oracle idea and confirming exfiltration at the receiving endpoint.
Fourth, scanning belongs in the stack but can't be the stack. Twenty of 45 is a real contribution and 7.2% false positives is a real cost, and neither is a reason to skip the layer or to stop at it.
The tool is open-source, which makes all of this testable by others. That's the most useful property of the study from where I sit. A measurement of this size is only worth as much as someone's ability to rerun it, and mcpvenom's 45 scenarios and canary oracle are published for exactly that.
The question the data leaves open #
The study measures a gap, and it measures it carefully. What it can't do is close it. The one place in these results where defence shows up reliably is inside certain models, and that's a property that sits with model providers rather than with the people building agents on top of them. The frameworks show no intentional defence, the protocol design passes the fields through unvalidated, and the disclosure process produced five rejections from four vendors.
So the open question isn't technical. It's who picks up the job. Will the protocol grow machine-readable security metadata for a description field that currently has none? Will frameworks begin validating what they paste into context, now that a code-level inventory has put file and line locations on the passthrough? Or will agent security stay unassigned, with each team discovering the gap separately? The next time someone reruns mcpvenom's 9,720-cell matrix, the first number to check is whether the framework band of 23 to 26% has moved at all.
Frequently Asked Questions #
What is MCP tool poisoning? An attack in which a malicious or compromised MCP server places instructions in the content an agent reads from it: tool descriptions, schema fields or response data. The paper notes that the protocol design carries that content into the model's context without validation.
How often did the attacks succeed? In 2,113 of 9,720 test cells, a 22.9% attack success rate. Of the vulnerable cells, 64.9% showed a dispatched attacker tool call, 23.0% confirmed network contact with the attacker endpoint, and 12.1% verified secret exfiltration.
Does the choice of agent framework protect against it? Not in the tested configurations. Nine core frameworks cluster within 23 to 26% (p = 0.91), and a code-level audit found no intentional tool-poisoning defence in any of the twelve frameworks.
Which models resisted best? Attack success rates ranged from 0.4% for Claude Fable 5 to 49.7% for Amazon Nova Pro. Claude Sonnet 5 flagged the attack as a prompt injection in 4 of its 10 vulnerable cells and still issued the exfiltration call.
Does scanning tool metadata help? Partly. A regex scanner rejects 20 of the 45 attack scenarios at a 7.2% false-positive rate, so it reduces exposure but cannot be the only control.
Who is responsible for fixing it? The paper does not settle that. The authors filed five coordinated disclosures with four vendors, and all five were rejected, which they describe as a structural accountability vacuum.
References #
- Shaikh, F. and Montaruli, B., (2026). MCP Tool Poisoning in Agentic AI Frameworks: A Cross-Framework Measurement Study ⧉. arXiv:2611.03555. In 19th Workshop on Artificial Intelligence and Security (AISec '26), The Hague, Netherlands, doi:10.1145/3847352.3848107 ⧉.
- Dynatrace Research, (2026). mcpvenom ⧉. Open-source tool-poisoning measurement harness.
- Model Context Protocol, specification and documentation ⧉.
Last reviewed .
