Skip to main content
Jeremy Cleland.
WorkAboutResumeWritingLearnContact
Jeremy Cleland.

Director - Senior Software Engineer
Gray Matter Resources
Michigan, USA.

WorkAboutResumeContactWritingLearn
jeremy@clelandco.comGitHubLinkedIn© 2026 Jeremy Cleland
  1. Home
  2. Writing
  3. MCP Tool Poisoning Is a Supply-Chain Problem, Not a Prompt Problem
Artificial IntelligencePublished November 12, 2026 · 13 min read

MCP Tool Poisoning Is a Supply-Chain Problem, Not a Prompt Problem

Tool descriptions and tool results are untrusted input that a model reads as instructions. MCP tool poisoning is defended with supply-chain controls and least privilege, not with better prompt wording.

By Jeremy ClelandPublished November 12, 2026
  • MCP
  • Model Context Protocol
  • Tool Poisoning
  • Prompt Injection
  • Agent Security
  • Least Privilege
  • Supply Chain Security
  • OAuth
  • Agentic AI
  • Human in the Loop
MCP Tool Poisoning Is a Supply-Chain Problem, Not a Prompt ProblemMCP Tool Poisoning Is a Supply-Chain Problem, Not a Prompt Problem
Conceptual illustration: a pegboard of hand tools, each with a blank hanging tag, and one tag trailing a concealed thread that runs behind the board and out of frame.

On this page

    A Model Context Protocol client assembles the model's context from text it did not write. Every connected server contributes tool names, descriptions, and schemas, and every tool call returns content from a system someone else controls. The model receives this untrusted text in its context, often under distinct tool or message roles. A role label alone does not ensure that instructions inside the content will be ignored. MCP tool poisoning is what happens when an attacker writes some of that text: instructions placed in a tool description or a tool result get followed as if the user had typed them.

    The threat model has two branches. Prompt injection steers a model through descriptions or returned content. Native command injection, compromised packages, and authorization failures can cause harm without a model following any malicious instruction. Both matter, but they need different controls.

    What is MCP tool poisoning?

    Invariant Labs named the attack in an April 2025 security notification. A tool poisoning attack occurs when "malicious instructions are embedded within MCP tool descriptions that are invisible to users but visible to AI models." The user sees a short tool name in an approval dialog. The model sees the full description, including whatever else the server author put there. Invariant classifies it as a specialized form of indirect prompt injection and demonstrated it against Cursor.

    The OWASP Top 10 for LLM Applications defines the parent category. In LLM01:2025 Prompt Injection, indirect prompt injections "occur when an LLM accepts input from external sources, such as websites or files." A tool description is an external source. So is an issue body, an email, a log line, or a web page returned by a tool.

    Simon Willison's point from his April 2025 analysis still frames the scope correctly: these vulnerabilities "are not inherent to the MCP protocol itself" and are present whenever tools given to a model can be exposed to untrusted input. MCP matters because it makes installing third-party tools easy, which makes the trust decision frequent and casual.

    Separate prompt injection from authorization failures

    The first four classes below manipulate what a model reads. The last concerns token and consent handling. A shared context can amplify prompt injection, while authorization failures must be corrected even in an application with no model.

    Attack classWhat was trustedControl that addresses it
    Tool poisoningDescription text from a serverReview and pin tool definitions
    Rug pullA one-time approvalRe-approve on any definition change
    Cross-server shadowingEvery server sharing one contextIsolate servers; namespace tools
    Injection via tool resultsContent fetched by a legitimate toolLimit what the agent can do after reading
    Confused deputy, passthroughA token or consent meant for another useAudience-bound tokens; per-client consent

    Tool poisoning is the base case described above.

    Rug pulls exploit time. Invariant describes a server that "can change the tool description after the client has already approved it." The approval was for a definition that no longer exists.

    Cross-server shadowing exploits shared context. A description from one server can change how the agent uses a tool from another, trusted server. In Invariant's wording, the malicious description "modifies the agent's behavior with respect to a trusted service or tool," so the harmful call goes through a tool the user has every reason to trust.

    Indirect prompt injection through tool results needs no malicious server at all. In Invariant's May 2025 GitHub MCP disclosure, an attacker files an issue in a public repository. A user asks an agent to review open issues, the agent reads the planted text, pulls private repository data into context, and publishes it in a pull request on the public repository. Invariant states that "this is not a flaw in the GitHub MCP server code itself" but "a fundamental architectural issue that must be addressed at the agent system level."

    Confused deputy and token passthrough are authorization failures, not model failures. The MCP security best practices page describes a proxy server that uses one static client ID with a third-party authorization server, so a consent cookie set for one client lets an attacker's dynamically registered client skip the consent screen. It defines token passthrough as an anti-pattern in which a server accepts a token that was not issued to it and forwards it downstream.

    What the MCP specification does and does not enforce

    The current specification, revision 2026-07-28, is candid about its limits. Its security section says that "descriptions of tool behavior such as annotations should be considered untrusted, unless obtained from a trusted server," and then that "MCP itself cannot enforce these security principles at the protocol level." The tools specification says there "SHOULD always be a human in the loop with the ability to deny tool invocations," and that clients should show tool inputs to the user before calling the server and validate tool results before passing them to the model. Those are SHOULD-level requirements on clients. Willison's recommendation is to treat them as MUSTs.

    Three protocol facts shape the defensive design:

    • Tool lists can change. The set returned by tools/list "MAY change over time." The protocol provides a change notification, and since 2026-07-28 a cache lifetime on list results, but it does not sign or version a description. Detecting a rug pull is the client's job.
    • Names are not identities. Tool name uniqueness "is scoped to a single server," and the server name "is not guaranteed to be unique across servers." Clients that aggregate servers are told to implement their own disambiguation, such as a server-identifier prefix.
    • Authorization is optional, and strict when present. The authorization specification opens with "Authorization is OPTIONAL for MCP implementations." When it is implemented, the rules are firm: clients must send the RFC 8707 resource parameter, servers must validate that a token was issued for them as the audience, and, per its security considerations, a server calling an upstream API "MUST NOT pass through the token it received from the MCP client."

    The 2026-07-28 changelog tightens the authorization layer further. Clients must validate the iss parameter on authorization responses, client credentials are bound to the authorization server that issued them, and Dynamic Client Registration is deprecated in favor of Client ID Metadata Documents. The revision also removes protocol-level sessions, and tool lists no longer vary per connection. None of that inspects what a description says. The protocol secures who is calling whom. What the text asks the model to do is outside its reach.

    Native execution and package incidents are a separate branch

    The following disclosures concern native execution, configuration approval, or package behavior. They are not evidence that a language model obeyed a poisoned description.

    • CVE-2025-6514 (CVSS 9.6, critical). The mcp-remote proxy, versions 0.0.5 through 0.1.15, was exposed to OS command injection when connecting to an untrusted MCP server, through a crafted authorization_endpoint URL. JFrog's write-up lists two mitigations: update to 0.1.16, and connect only to trusted servers over HTTPS.
    • CVE-2025-54136 (CVSS 7.2, high). In Cursor before 1.3, an attacker who could modify an already approved MCP configuration could swap in a different command without a new prompt. The fix requires approval every time an mcpServers entry is modified. This is the rug pull at the configuration layer, and the fix is the general one.
    • CVE-2025-49596 (CVSS 4.0 score 9.4, critical). MCP Inspector before 0.14.1 allowed remote code execution because nothing authenticated requests between the Inspector client and its proxy, which could launch MCP commands over stdio.

    The package incident is more direct. In September 2025, Postmark reported that a malicious actor "created a fake package on npm impersonating our name, built trust over 15 versions," and then added a backdoor in version 1.0.16 that "secretly BCC'd emails to an external server." Postmark states the package was not an official Postmark tool. No model was tricked. A dependency that had been approved while benign changed behavior in an update.

    None of these required clever phrasing aimed at a model. They required a client that executed or trusted what a server or package supplied.

    Why prompt wording and filters are not a control

    Prompt instructions and injection filters reduce the success rate of an attack. They do not bound it, and an attacker can retry.

    NIST's technical staff measured this in a January 2025 agent hijacking evaluation built on the AgentDojo framework. Against one model, the strongest baseline attack succeeded 11 percent of the time. After the team developed new attacks, the strongest succeeded 81 percent of the time. When each injection task was attempted 25 times instead of once, average attack success rose from 57 percent to 80 percent. A defense tuned against known attack strings was measured against yesterday's attacker.

    OWASP states the limit plainly in LLM01:2025: "it is unclear if there are fool-proof methods of prevention for prompt injection." Willison makes the security-engineering version of the point in his lethal trifecta essay: he is "deeply suspicious" of guardrail products claiming to catch 95 percent of attacks, because "in web application security 95% is very much a failing grade."

    Human confirmation has a similar ceiling. Invariant notes that users who select an "Always Allow" policy may stop monitoring individual tool calls. A confirmation dialog on every read is one that gets dismissed.

    The alternative is to assume injection will sometimes succeed and decide in advance what a hijacked agent is able to do. A June 2025 paper on design patterns for securing LLM agents builds on that premise; as Willison summarizes its principle, "once an LLM agent has ingested untrusted input, it must be constrained." The constraint lives in the system around the model.

    MCP prompt injection defenses that hold: supply chain and least privilege

    Willison's trifecta is the most useful design test. An agent is exploitable for data theft when it combines "access to your private data," "exposure to untrusted content," and "the ability to externally communicate." His advice is to avoid that combination entirely. The controls below either keep untrusted text out, or make sure that the agent reading it lacks one leg of the trifecta. They line up with OWASP's LLM01 mitigations: least-privilege access, human approval for high-risk actions, and segregating external content.

    Three separate compartments contain private files, an incoming document tray, and an outbound communication slot.
    Conceptual illustration: separate access to private data, exposure to untrusted content, and outbound communication instead of giving one agent unrestricted use of all three.

    Treat MCP servers as dependencies

    • Keep an allowlist. The OWASP MCP Top 10, a beta project, lists shadow MCP servers and supply-chain tampering as their own risks. An organization should be able to enumerate every server its agents can reach and who approved each one.
    • Install from the vendor's documented source. Postmark's guidance after the impersonation was that a package claiming its name but absent from its official documentation should not be used.
    • Pin versions and hash tool definitions. Invariant's recommended mitigation is to pin server and tool versions and verify descriptions with a hash or checksum before use. A changed hash should block the tool until someone reviews the difference, which is the behavior Cursor adopted for configuration entries.
    • Review descriptions as code. OWASP's tool poisoning guidance recommends signed manifests, version-controlled registries, and separation between who proposes a tool change and who approves it. The full description text, not the display name, is the artifact under review.
    • Sandbox local servers. The MCP best-practices page requires one-click install flows to show the exact command without truncation, and recommends running local servers with restricted file system and network access.

    An allowlisted, pinned server can still return an attacker-controlled issue, email, or document. Dependency controls do not sanitize that content. The next layer limits what the agent can access or do after reading it.

    Scope every server and every agent

    • Split the trifecta across agents. An agent that reads public issues, inbound email, or web pages should not also hold private data and a write or send tool. Invariant's proposed fix for the GitHub flow was a policy limiting an agent to one repository per session.
    • Namespace and isolate servers. Prefix tool names with a server identifier, as the spec suggests, and avoid loading an unvetted server into the same context as one holding credentials. Shadowing depends on shared context.
    • Request minimal scopes. The best-practices page calls for a small initial scope set with incremental elevation, and lists wildcard scopes and publishing every scope in scopes_supported as common mistakes.
    • Never forward tokens. Validate the audience on every inbound token and obtain a separate token for each upstream API. Proxy servers with a static client ID need per-client consent before forwarding to a third-party authorization server.
    • Prefer read-only servers and keep execution elsewhere. A read-only tool cannot itself perform a write, but it can disclose private data. Keep read scopes and outbound paths constrained too.

    Gate side effects, and log everything

    Confirmation should be reserved for actions with consequences, and it should bind to the exact payload being approved. I would put that gate in application code rather than in the prompt, where the model cannot talk its way past it. The design question of what makes an approval real is covered in where the human signature belongs.

    Logging is the last control. The tools specification asks clients to log tool usage for audit, and OWASP's MCP list names missing audit and telemetry as a risk. Recording the hash of each tool definition alongside each call is what lets an investigator say which version of a description the model saw.

    How to test MCP security controls

    A control that is not exercised by a test is an assumption. The tests that matter here are deterministic and need no model: the tool-name set equals the approved set, schemas are closed, unknown arguments are rejected, a changed description fails the build, and a side effect cannot occur without a matching approval.

    Incident Lab, an experimental project on this site built on synthetic data, uses that structure. Its MCP server is read-only, the model can propose only enumerated recovery actions, execution belongs to the application outside the MCP server, and approval is tied to the exact run, proposal, and simulator revision. Its difficult cases include instructions embedded in untrusted logs. The method behind those checks, including how to confirm that an injection test actually reached the payload and why tool descriptions belong under change control, is in how to evaluate production AI agents.

    NIST's lessons apply to the adversarial side: report results per task instead of as an average, and measure across repeated attempts, since an attacker gets more than one.

    Where to start

    Inventory the MCP servers in use and remove the ones nobody can vouch for. Pin and hash what remains. Then draw the trifecta for each agent: which tools read private data, which ingest content an outsider can write, and which can send data out. Any agent holding all three needs to lose one, or needs a payload-bound approval in front of the third. Fix token audiences and scopes on every remote server.

    Prompt and filtering defenses can remain additional layers. Verify the actual capability boundary: what private data can this session read, which attacker-controlled content can it ingest, and where can it send information? Test both model-mediated misuse and native dependency or authorization failures.

    References

    1. Model Context Protocol. Specification, revision 2026-07-28, Security and Trust and Safety section.
    2. Model Context Protocol. Tools specification, 2026-07-28.
    3. Model Context Protocol. Authorization specification, 2026-07-28.
    4. Model Context Protocol. Authorization security considerations, 2026-07-28.
    5. Model Context Protocol. Key changes in revision 2026-07-28.
    6. Model Context Protocol. Security best practices.
    7. Beurer-Kellner L, Fischer M. "MCP Security Notification: Tool Poisoning Attacks." Invariant Labs, 1 April 2025.
    8. Invariant Labs. GitHub MCP server toxic agent flow disclosure, 26 May 2025.
    9. Willison S. "Model Context Protocol has prompt injection security problems." 9 April 2025.
    10. Willison S. "The lethal trifecta for AI agents: private data, untrusted content, and external communication." 16 June 2025.
    11. OWASP GenAI Security Project. LLM01:2025 Prompt Injection, OWASP Top 10 for LLM Applications 2025.
    12. OWASP. MCP Top 10 (beta), including MCP03:2025 Tool Poisoning.
    13. CVE Program. CVE-2025-6514: OS command injection in mcp-remote, published 9 July 2025.
    14. Peles O. JFrog analysis of the mcp-remote vulnerability CVE-2025-6514, 9 July 2025.
    15. Cursor. Security advisory GHSA-24mc-g4xr-4395 (CVE-2025-54136), 1 August 2025.
    16. CVE Program. CVE-2025-49596: MCP Inspector proxy server lacks authentication, published 13 June 2025.
    17. Postmark. Statement on the malicious postmark-mcp npm package, 25 September 2025.
    18. NIST. "Technical Blog: Strengthening AI Agent Hijacking Evaluations." 17 January 2025.
    19. Beurer-Kellner L, Buesser B, Creţu A-M, et al. "Design Patterns for Securing LLM Agents against Prompt Injections." arXiv:2506.08837, June 2025.
    Previous PostOpenTelemetry GenAI: A Reproducible Agent Trace
    Next PostDynamic Parking Pricing: What the SFpark Evidence Shows
    With focus in the article, press J for previous post or K for next post

    Share this article

    Post Share

    Related writing.

    • Artificial Intelligence

      How I Evaluate Production AI Agents: Three Layers, One Public Repo

      Deterministic tool tests, trajectory invariants, and outcome checks against observable state. A working three-layer evaluation stack, shown through a public MCP agent repo, including the parts that did not work.

      Jeremy Cleland
    • Artificial Intelligence

      Approval Fatigue: An Approve Button Is Not AI Agent Oversight

      An approve button in front of an AI agent is not oversight on its own. Approval fatigue turns it into a rubber stamp unless the action is bounded, the reviewer sees the evidence and blast radius, and the result is verified afterwards.

      Jeremy Cleland
    • Artificial Intelligence

      OpenTelemetry GenAI: A Reproducible Agent Trace

      Build and inspect a synthetic agent-style trace with pinned OpenTelemetry versions, a failed tool span, parentage assertions, and a content-free export policy.

      Jeremy Cleland
    View all articles

    Let’s connect

    Useful AI starts with
    a real problem.

    Based in Michigan. Connect about agentic AI, software engineering, and the people using what we build.

    Get in touch