SecurityWall Logo
Back to Blog
MCP Security
August 4, 2026
18 min read

MCP Security Testing 2026: Model Context Protocol Risks

HM

Hisham Mir

August 4, 2026

MCP Security Testing 2026: Model Context Protocol Risks
Running MCP servers in production?
40 plus CVEs in 2026 · Are you exposed?
Schedule a Meeting →
QUICK ANSWER · MCP SECURITY 40 PLUS CVES · 2026

The Model Context Protocol (MCP), released by Anthropic in November 2024, lets AI agents call external tools, APIs, files, and services through a standardised interface. Between January and April 2026, security researchers disclosed more than 40 CVEs against MCP implementations across Python, TypeScript, Java, and Rust SDKs. Estimated 200,000 MCP servers were assessed as vulnerable in a single April 2026 advisory. CVE-2025-6514 (mcp-remote, CVSS 9.6) achieved full remote code execution across 437,000 downloaded environments. New attack classes documented in 2025 and 2026 include tool poisoning, rug pulls, tool shadowing, cross-server attacks, confused-deputy OAuth flaws, toxic agent flows, and the lethal trifecta combining external content, private data access, and outbound network reach. Testing MCP deployments requires methodology beyond traditional application security. This article breaks down every named attack class, the specific test methodology that catches each, real CVE examples, and how SecurityWall's AI penetration testing service covers MCP-specific risks.

MCP Security Assessment · Server, Client, Tool Testing

40 Plus MCP CVEs Filed in 2026. Test Yours Before Attackers Do.

Tool poisoning simulation, rug pull detection, cross-server attack testing, prompt injection via tool descriptions, permission escalation, confused deputy OAuth flaws, and STDIO command injection. Report format mapped to OWASP Agentic AI Top 10.

MCP CVES DISCLOSED
40 plus
Jan to Apr 2026, all major SDKs
VULNERABLE SERVERS
200K
Estimated exposed (Ox Security Apr 2026)
MCP RELEASE DATE
Nov 2024
Anthropic open standard release
CVE CADENCE 2026
1 in 4
MCP CVE filed every four days
Live CVE Intelligence · Recent MCP Vulnerabilities Disclosed

Six high-impact MCP disclosures from the last 12 months. Each is confirmed against the National Vulnerability Database. The pattern is consistent: authentication missing, input validation absent, tool metadata trusted implicitly.

CVE-2025-6514 CVSS 9.6
mcp-remote OS command injection via malicious server authorization endpoint. 437,000 plus downloaded environments affected. Full RCE on client OS.
CVE-2026-33032 CVSS 9.8
nginx-ui MCP endpoint failed authentication for command execution. 2,600 plus exposed instances. Complete nginx service takeover.
CVE-2025-49596 CVSS 9.4
MCP Inspector Proxy Server missing authentication. Any local process could invoke MCP server tools.
CVE-2026-13341 Kong Konnect
Kong Konnect MCP server indirect prompt injection drove unintended API requests. Confused deputy at production scale.
CVE-2025-66414 SDK
MCP TypeScript SDK DNS rebinding vulnerability. Cross origin control over MCP tool invocation.
CVE-2025-58357 Client
5ire desktop MCP client script gadgets. Compromised MCP servers could execute code via chat rendering.

The Model Context Protocol standardises how AI agents connect to external tools. That standardisation is what makes MCP powerful, and also what makes it dangerous. Before MCP, every AI integration was ad hoc, meaning every attacker had to write custom exploits. With MCP, every server implementation shares the same protocol surface, meaning every attacker can write one exploit and apply it across thousands of deployed servers.

Anthropic's reference implementation went live in November 2024. By April 2026, security researchers had disclosed more than 40 CVEs across MCP SDKs, servers, clients, and marketplaces. The cadence is now approximately one CVE every four days. Most of these vulnerabilities are not exotic: missing input validation, absent authentication, and blind trust in tool descriptions. What is new is the attack surface. Testing MCP deployments requires methodology that legacy application security testing does not automatically cover.

What MCP Actually Is and Why It Creates a New Attack Surface

Model Context Protocol is a client server protocol. An MCP client (typically an AI agent framework such as Claude Desktop, Cursor, Continue, or a custom LangChain application) connects to one or more MCP servers. Each server exposes a set of tools, resources, and prompts that the agent can invoke. The transport is either STDIO for local processes or HTTP/Server Sent Events for remote servers.

The security-relevant properties of this architecture are three.

Tool descriptions become instructions to the LLM. When an MCP client connects to a server, the server sends a list of available tools with human readable descriptions. The client passes those descriptions to the underlying LLM as context. The LLM decides when and how to invoke tools based on those descriptions. If the description contains adversarial content, the LLM's decision-making is compromised before any user prompt is even processed.

Tool invocations are subprocess-like. The protocol's default transport is STDIO, which means MCP servers are often spawned as subprocesses of the client. Command execution is not a bug in MCP; it is the intended interface. Every implementation inherits this surface, and every implementation must independently sanitise it correctly.

Server metadata is trusted by default. MCP clients typically render server-provided content directly to the user or pass it directly to the LLM without sanitisation. This creates a straight injection path from a compromised server to the client's rendering context, and from server metadata to the agent's action space.

The consequence: a single compromised server, or a single malicious tool description, can achieve outcomes that traditional AppSec threat models would classify as impossible without direct memory access. Prompt injection via tool metadata is the AI-era equivalent of stored XSS, except the target is not just a web page but the agent's entire decision loop.

The MCP Attack Class Registry

Between April 2025 and mid 2026, security researchers named and documented a growing set of attack classes specific to MCP. Simon Willison, Invariant Labs, JFrog Security Research, CyberArk, and the OWASP MCP working group have contributed distinct terminology. The matrix below consolidates the twelve attack classes that any MCP security assessment should cover, mapped to the observable behaviour that a test must catch.

MCP Attack Class Registry Twelve Named Attack Classes and What Testing Catches Each
Attack Class What It Targets Test That Catches It
Tool PoisoningMalicious content in tool descriptionsAdversarial tool description injection test
Rug PullSilent redefinition of tool behaviour after trust establishedTool version pinning verification, hash validation
Tool ShadowingName collision between servers redirects invocationMulti server enumeration and namespace conflict test
Cross Server AttackData from one server used to attack anotherServer isolation boundary verification
Confused Deputy OAuthAgent invokes tools with user auth on attacker requestAuth scope and consent flow audit
Toxic Agent FlowAuthorised tool calls combined into exfiltration pipelineSequence level behavioural analysis
Lethal TrifectaExternal content, private data access, outbound network combinedData flow and capability boundary mapping
STDIO Command InjectionUnsanitised subprocess spawn argumentsSTDIO fuzzing and shell metacharacter injection
DNS RebindingCross origin control of local MCP serversOrigin validation and localhost binding test
Supply Chain ImpersonationMalicious package clones legitimate MCP serverPackage provenance and signature verification
Unicode TAG ConcealmentHidden instructions in tool metadata via Unicode tag blocksUnicode canonicalisation and metadata inspection
Client Script GadgetServer content triggers XSS on client renderingClient output encoding and CSP validation

Registry consolidated from OWASP MCP Top 10 draft (2025), Simon Willison lethal trifecta essay (April 2025), Invariant Labs disclosures (April to May 2025), JFrog Security Research CVE-2025-6514 advisory (July 2025), and CyberArk poison research (2025).

How to Test Each MCP Attack Class

Testing MCP deployments requires methodology that spans three planes: the MCP server itself, the MCP client that consumes it, and the agent runtime that interprets both. Each attack class in the registry above tests one or more of these planes. What follows is the operational methodology for each category.

Tool poisoning testing. Inject adversarial content into tool descriptions and observe whether the agent alters its behaviour based on that content. This is the MCP equivalent of stored prompt injection testing, except the payload lives in the tool metadata rather than user input. Test coverage includes hidden instructions, priming attacks, and directive language embedded in what appears to be documentation.

Rug pull testing. Establish tool behaviour baseline, then simulate silent server-side redefinition and observe whether the client detects the change or silently accepts new behaviour. Rug pulls exploit the fact that most MCP clients do not pin or verify tool versions after initial handshake.

Tool shadowing testing. Enumerate all tools across all connected MCP servers, identify name collisions, and observe which server actually receives invocations. Namespace conflicts are commonly resolved by connection order or by client heuristics that attackers can influence.

Cross server attack testing. Set up two or more MCP servers with intentional adversarial relationships. Trigger data flow from one to another via the agent and observe whether server isolation boundaries hold. Data pulled from Server A that lands in a prompt to Server B is a cross server attack surface.

Confused deputy OAuth testing. Audit the OAuth consent flows for MCP tool invocations. Test whether attacker-controlled input can cause the agent to invoke authorised tools on behalf of an attacker's request rather than the user's stated intent.

Toxic agent flow testing. Model realistic agent action sequences and observe whether sequences that individually appear authorised combine into unauthorised outcomes (data exfiltration, privilege escalation, cross-account access). Sequence level analysis catches what per-call authorisation misses.

Lethal trifecta testing. Map the agent's capability graph. Identify systems where the agent has (a) exposure to untrusted external content, (b) access to private data, and (c) ability to send data outbound. Any deployment where all three coexist is at risk of trifecta exploitation. Segregation of one of these three is the defence.

STDIO command injection testing. Fuzz all MCP tool arguments with shell metacharacters, argument delimiters, and command chaining syntax. Every argument that reaches subprocess spawn without sanitisation is command injection.

DNS rebinding testing. Verify local MCP servers bind only to localhost, verify origin headers are validated, and simulate DNS rebinding attacks against exposed HTTP transports.

Supply chain impersonation testing. Verify package provenance for every MCP server in the deployment. Cross-check package signatures, publisher identity, and download source against known legitimate distributions. The 2026 Oura MCP clone incident affected developers who had no automated provenance verification.

Unicode TAG concealment testing. Inspect tool metadata for Unicode tag blocks (U+E0000 to U+E007F) that render invisibly but carry instructions to the LLM. Canonicalise all metadata before passing to the model.

Client script gadget testing. Test whether server-supplied content renders unsafely in the client's UI (Markdown injection, HTML injection, script gadget triggers). This is traditional XSS testing adapted to the MCP client rendering context.

Running MCP servers in production with tool descriptions from third parties?

Third party MCP servers have combined downloads exceeding 150 million in 2026. The vetting process for most MCP marketplaces is minimal. If your agent connects to any server whose tool descriptions you did not personally author and pin, you are exposed to tool poisoning and rug pull attacks that traditional security testing does not catch.

Schedule a Scoping Meeting →

MCP Client, Server, and Tool Security Boundaries

Effective MCP security testing separates the three security boundaries in the architecture and tests each independently before testing them in combination.

The MCP client boundary. The client is what the user actually interacts with: Claude Desktop, Cursor, Continue, VS Code MCP integration, or a custom application. Testing the client focuses on how it renders server content, how it authenticates users, how it handles OAuth flows, and how it isolates data from different servers. CVE-2025-58357 (5ire desktop) and CVE-2025-6514 (mcp-remote) both exploit client-side gaps.

The MCP server boundary. The server exposes tools to any authenticated client. Testing the server focuses on authentication (or lack of it), authorisation enforcement, input sanitisation, subprocess argument handling, and metadata canonicalisation. CVE-2025-49596 (MCP Inspector Proxy) and CVE-2026-33032 (nginx-ui) both exploit server-side authentication gaps.

The tool boundary. Each tool exposed by a server has its own attack surface. Tools that shell out, tools that access files, tools that make network requests, and tools that call other tools each need per-tool assessment. Individual tool audit is where per-server penetration testing spends most of its time.

The composition problem. The three boundaries above interact. A safe server exposing safe tools connected to a safe client may still produce unsafe agent behaviour when combined with an adversarial second server, a confused OAuth flow, or a toxic agent sequence. Testing must cover both isolated components and realistic multi-server, multi-tool, agent-driven scenarios. This is why sequence-level and capability-graph testing (lethal trifecta, toxic flow) are as important as per-component testing.

What Enterprise Buyers and Auditors Ask About MCP

Enterprise procurement and compliance functions are catching up to MCP faster than most AI developers realise. The questions that arrive during vendor security reviews now include MCP-specific items that were unheard of even six months ago.

Which MCP servers does your application connect to? Direct question in vendor assessment questionnaires. Undocumented server connections raise immediate red flags.

What is your tool vetting process? Buyers want to see explicit vetting criteria, package signature verification, source-code review requirements, and version pinning policies.

How do you handle tool poisoning? Answers that mention "we trust the servers we use" are increasingly rejected. Expected answers involve technical controls: tool description sanitisation, adversarial content detection, or explicit human review of every tool description.

Do you test for OWASP Agentic AI Top 10? The OWASP Agentic AI Top 10 is becoming a standard reference in enterprise AI procurement. MCP-specific items map to several categories including tool misuse, over-privileged tools, and prompt injection.

Have your MCP integrations been independently tested? Third party testing evidence is starting to appear in enterprise SaaS procurement checklists. A named security firm's report is stronger evidence than internal review.

What is your incident response plan for compromised MCP servers? When (not if) a third party MCP server in your dependency chain is compromised, what is your process? This question mirrors the traditional supply chain questions but is specific to the MCP threat model.

Do you comply with EU AI Act Article 15(5)? For agents deployed in the EU, EU AI Act Article 15 explicitly requires resilience against adversarial content, which includes MCP tool poisoning and prompt injection through metadata.

Six Questions Before Your MCP Deployment Is Enterprise Ready

Two or more no answers means enterprise buyers will find gaps in your next vendor security review.

  1. Have all connected MCP servers been vetted for authenticity, provenance, and signature validity?
  2. Are tool descriptions canonicalised and inspected for hidden Unicode content before reaching the LLM context?
  3. Are tool versions pinned and hash validated to prevent rug pull attacks after initial trust establishment?
  4. Have you mapped the lethal trifecta exposure across your agent's capability graph?
  5. Does your MCP server or client input handling include fuzzing coverage for STDIO command injection?
  6. Is your MCP deployment covered by an independent third party security assessment with framework mapping to OWASP Agentic AI Top 10?
Most Teams Miss Three or More →

How SecurityWall Tests MCP Deployments

SecurityWall's AI and LLM penetration testing service covers MCP-specific attack classes as a standard part of every agent-based engagement. Each engagement produces framework-mapped output calibrated for enterprise procurement review and, where relevant, EU AI Act Article 9 documentation.

Per-attack-class coverage. The twelve attack classes in the registry above are individually tested against your deployment. Coverage is documented per class with pass, fail, or not applicable rationale. Findings tie back to specific tools, servers, or client configurations rather than generic categories.

Framework mapping. Reports map findings to OWASP Agentic AI Top 10 categories, MITRE ATLAS techniques where applicable, and EU AI Act Article 15(5) adversarial resilience requirements for European deployments.

CVE cross-reference. Where a finding matches a publicly disclosed MCP CVE, the report cites the CVE identifier and NVD entry. This gives your compliance team, procurement team, and enterprise buyers an anchor to well-known reference material.

Multi-plane testing. Server assessment, client assessment, and tool-by-tool audit combined with realistic multi-server scenario testing for cross-server attacks, toxic agent flows, and lethal trifecta exposure.

Retest included. After remediation, critical and high findings are retested to confirm closure. Retest is part of the engagement fee, not a separate cost.

Concrete pricing is quoted in the 30 minute scoping meeting because it depends on the number of MCP servers, complexity of tool graph, and whether client-side testing is in scope. What is standard across every engagement: coverage of all twelve documented attack classes, framework mapping, and named credentialed testers.

Frequently Asked Questions

What is MCP and why does it need security testing? Model Context Protocol is an Anthropic-released open standard (November 2024) that lets AI agents connect to external tools, APIs, files, and services. It has been widely adopted by AI agent frameworks including Claude Desktop, Cursor, Continue, and hundreds of open source projects. MCP creates new attack classes (tool poisoning, rug pulls, tool shadowing, cross-server attacks, confused deputy OAuth flaws) that traditional application security testing does not automatically cover. Between January and April 2026, more than 40 CVEs were disclosed against MCP implementations, making dedicated MCP security testing a live requirement.

Is MCP security testing different from regular penetration testing? Yes. MCP-specific testing requires methodology for tool description injection, sequence level analysis of agent action chains, capability graph mapping for lethal trifecta exposure, and cross-server isolation testing. Standard web application penetration testing does not automatically cover these categories. That said, MCP servers are still software and still need traditional testing: input validation, authentication, authorisation, and STDIO input handling all remain relevant.

How much does an MCP security assessment cost? Pricing depends on scope. A single MCP server with 5 to 10 tools connected to one client is a smaller engagement than a full agent framework connecting to a dozen third party servers. SecurityWall quotes fixed-fee per engagement in the 30 minute scoping meeting. No annual retainer required.

Can automated scanners find MCP vulnerabilities? Partially. Automated MCP scanners (Enkrypt AI MCP Scan, Akto MCP Proxy, and others) catch some patterns, particularly known CVE signatures. However, one independent audit in April 2026 found approximately 78% false positive rate on YARA based MCP scanners. Sequence level attacks, lethal trifecta exposures, and Unicode concealment techniques require human-driven testing. Combining automated scanning with expert assessment produces the strongest coverage.

What is the OWASP Agentic AI Top 10 and how does it relate to MCP? The OWASP Agentic AI Top 10 is a 2025-2026 project cataloguing the most significant security risks in AI agent systems. Several OWASP categories map directly to MCP-specific risks: tool misuse, over-privileged tools, prompt injection, hallucination-triggered actions, and unauthorised code execution. Any MCP deployment security review should reference OWASP Agentic AI Top 10 as a mapping baseline.

Does EU AI Act Article 15(5) apply to MCP deployments? Yes for high risk AI systems deployed in the EU. Article 15(5) explicitly requires resilience against adversarial manipulation including inputs designed to cause the AI model to make a mistake. MCP tool poisoning, indirect prompt injection through server content, and confused deputy attacks all fall within this requirement. Independent testing evidence covering these categories is expected in the Article 9 technical documentation package.

MCP Security Assessment · Twelve Attack Class Coverage

MCP in Your AI Stack?
Test It Before Attackers Do.

Tool poisoning simulation, rug pull detection, cross server attack testing, prompt injection via tool descriptions, permission escalation, confused deputy OAuth flaws, and STDIO command injection. Report format mapped to OWASP Agentic AI Top 10 and EU AI Act Article 15(5). Concrete quote in the 30 minute scoping meeting.

OSCP, OSWE, CREST, CRT, CISM, and CISSP certified team · NCA registered

Related reading:

Tags

MCP SecurityLLM Red TeamingLLM SecurityOWASP LLM Top 10Prompt InjectionLLM Penetration TestingAgentic AI
HM

About Hisham Mir

Hisham Mir is a cybersecurity professional with 10+ years of hands-on experience and Co-Founder & CTO of SecurityWall. He leads real-world penetration testing and vulnerability research, and is an experienced bug bounty hunter.