MCP security incidents¶
The Model Context Protocol (MCP) incidents below stem from implementation bugs, malicious packages, or misconfiguration, not Invariant Labs framed tool poisoning as a weakness in MCP mechanics, but no specification advisory or CVE classifies it as a protocol bug.. Open each card's primary source, then read the linked OWASP MCP Top 10, 2025 edition risk pages.
Entry selection criteria¶
Every card meets 2 criteria:
- Primary source. Each cites at least 1 CVE, GitHub Security Advisory (GHSA), OSV malware record, vendor bulletin, or researcher demonstration, plus any vendor response.
- Cause and evidence. Each names 1 cause: client bug, server bug, supply chain attack, or misconfiguration. Each adds an evidence label: exploited in the wild, disclosed vulnerability, researcher demonstration against a real product, or research proof of concept. Research cards show only the research proof of concept label.
This guide's maintainers assign all OWASP MCP Top 10 mappings on this page because advisories omit OWASP IDs. No entry maps primarily to MCP08 Lack of Audit and Telemetry, MCP09 Shadow MCP Servers, or MCP10 Context Injection and Over-Sharing. Those appear only as secondary mappings for related control gaps.
Azure mitigations are maintainer suggestions that limit exposure or damage. They never replace the source remedy: a fixed version, package removal, or configuration change. Cards without an Azure mitigations line have no Azure mitigation.
Disclosed incidents and research¶
Dates mark the first public advisory or researcher post, oldest first.
Invariant Labs tool poisoning, rug pull, and shadowing proof of concept¶
- MCP03 Tool Poisoning
- MCP06 Intent Flow Subversion
- MCP04 Software Supply Chain Attacks and Dependency Tampering
In a controlled Cursor test, not an in-the-wild attack, Invariant Labs hid instructions in a tool description. Cursor read an SSH key and sent it in a tool parameter. The post showed tool shadowing, where a second server's tool alters a trusted tool's behavior, and rug pulls, where a server changes descriptions after approval. No specification advisory or CVE classifies it as a protocol bug.
Azure mitigations:
- Defender for Cloud Foundry MCP allowed tools list recommendation
- API Center Private MCP registry It stores metadata for approved remote and local MCP servers. Integration with the Foundry private tool catalog remains in preview.
GitHub MCP server private repository exfiltration¶
- MCP06 Intent Flow Subversion
- MCP10 Context Injection and Over-Sharing
- MCP02 Privilege Escalation via Scope Creep
Invariant Labs demonstrated hidden instructions in a public GitHub issue against an agent with a broad github-mcp-server token. The agent read private repositories and posted them in a public pull request. Neither Invariant nor GitHub called this a server or specification bug. GitHub added opt-in Lockdown mode to restrict content from untrusted contributors in public repositories.
Azure mitigations:
- Defender for Cloud Foundry MCP human-in-the-loop approval recommendation It applies only to Foundry AI agents flagged as exposed to indirect prompt injection.
- Prompt Shields Document attack detection It is off by default in Foundry. In Foundry agents, it covers only tools with moderation support, not the MCP tool.
MCP Inspector unauthenticated local proxy remote code execution (CVE-2025-49596)¶
Before 0.14.1, the official MCP Inspector tool ran a local proxy without authentication or Origin checks. A malicious web page could send browser requests to the proxy and run arbitrary commands on the developer's machine. Anthropic fixed this bug in @modelcontextprotocol/inspector 0.14.1 with a default session token and allowed-origin checks.
Azure mitigations:
- Azure Artifacts Private feeds and upstream package sources It caches the upstream package versions developers pull. That cache gives an inventory of versions in use.
Supabase MCP prompt injection demonstration via support tickets¶
- MCP06 Intent Flow Subversion
- MCP02 Privilege Escalation via Scope Creep
- MCP10 Context Injection and Over-Sharing
In a dummy-data test, General Analysis targeted an IDE assistant with Supabase MCP service_role privileges. Hidden support-ticket instructions made the assistant copy sensitive SQL rows into a customer-visible reply. Supabase reported no customer MCP leaks and called the issue not MCP-specific. Supabase already had read-only mode and SQL result warnings, then disabled write tools in read-only mode on 2025-09-15.
Azure mitigations:
- Defender for Cloud Foundry MCP human-in-the-loop approval recommendation It applies only to Foundry AI agents flagged as exposed to indirect prompt injection.
- Prompt Shields Document attack detection It is off by default in Foundry. In Foundry agents, it covers only tools with moderation support, not the MCP tool.
mcp-remote OAuth URL command injection (CVE-2025-6514)¶
The mcp-remote proxy passed server-supplied authorization_endpoint URLs to the OS URL opener unsanitized. An untrusted MCP server could run arbitrary OS commands on Windows and launch arbitrary executables with limited arguments on macOS and Linux. Maintainers fixed it in mcp-remote 0.1.16.
Azure mitigations:
- API Center Private MCP registry It stores metadata for approved remote and local MCP servers. Integration with the Foundry private tool catalog remains in preview.
- Azure Artifacts Private feeds and upstream package sources It caches the upstream package versions developers pull. That cache gives an inventory of versions in use.
Malicious postmark-mcp npm package (OSV MAL-2025-47604)¶
- MCP04 Software Supply Chain Attacks and Dependency Tampering
- MCP09 Shadow MCP Servers
- MCP08 Lack of Audit and Telemetry
An attacker published a copy of Postmark's MCP server to npm as postmark-mcp. Version 1.0.16 secretly BCC'd sent emails to an external address. Postmark confirmed it had not published the package, and npm shows it unpublished on 2025-09-25. Only OSV MAL-2025-47604 tracks it, with no CVE or GHSA.
Azure mitigations:
- API Center Private MCP registry It stores metadata for approved remote and local MCP servers. Integration with the Foundry private tool catalog remains in preview.
- Azure Artifacts Private feeds and upstream package sources It caches the upstream package versions developers pull. That cache gives an inventory of versions in use.
Claude Code MCP consent bypass (CVE-2025-59536)¶
- MCP05 Command Injection and Execution
- MCP07 Insufficient Authentication and Authorization
- MCP04 Software Supply Chain Attacks and Dependency Tampering
An untrusted repository could set enableAllProjectMcpServers in .claude/settings.json to run .mcp.json commands before the Claude Code startup trust dialog. Check Point Research reported CVE-2025-59536 with GHSA-ph6w-f82w-28w6, a hooks startup warning bug fixed in 1.0.87. Anthropic fixed CVE-2025-59536 in @anthropic-ai/claude-code 1.0.111.
MCP Python and TypeScript SDK DNS rebinding defaults (CVE-2025-66416, CVE-2025-66414)¶
Official MCP Python and TypeScript SDKs left Host and Origin checks off by default on unauthenticated local HTTP servers. A malicious site could reach localhost via DNS rebinding. Local stdio servers stayed unaffected. Maintainers fixed this default in Python mcp 1.23.0 and TypeScript @modelcontextprotocol/sdk 1.24.0.
Claude Code base URL API key leak (CVE-2026-21852)¶
- MCP01 Token Mismanagement and Secret Exposure
- MCP04 Software Supply Chain Attacks and Dependency Tampering
A repository configuration file could override ANTHROPIC_BASE_URL so Claude Code sent API requests to an attacker endpoint before the project trust prompt. Those requests could leak user API keys. This bug is not an MCP specification flaw. Anthropic fixed it in @anthropic-ai/claude-code 2.0.65.
Azure mitigations:
Azure MCP Server token exposure through server-side request forgery (CVE-2026-26118)¶
Some Azure MCP Server tools accepted arbitrary URLs instead of Azure resource IDs. The server then sent an outbound request that could include its managed identity token. Microsoft classified this as elevation of privilege via server-side request forgery (CWE-918) with no observed exploitation. Microsoft added URL validation in 1.0.2 and 2.0.0-beta.17.
Azure mitigations:
- Azure MCP Server 3.0 with namespace and read-only scoping Pin to stable 3.0 or later because npm latest resolves to a 4.0 beta. Scope tools with --namespace, --tool, or --read-only.
- API Management Entra ID JWT validation policy
- Azure Firewall FQDN egress filtering rules Application-rule FQDN filtering covers HTTP, HTTPS, and Azure SQL on Basic, Standard, and Premium SKUs. Network-rule FQDN filtering requires Standard or Premium.
HashiCorp Terraform MCP server session cache and server-side request forgery flaws (HCSEC-2026-23)¶
In shared HTTP mode, HashiCorp Terraform MCP Server cached clients by MCP session ID alone, not per caller token. One caller could reuse another's Terraform credentials in stateful (CVE-2026-16496) and stateless (CVE-2026-16498) modes. The bulletin also disclosed bearer-token server-side request forgery (CVE-2026-14869). HashiCorp fixed all 3 bugs in 1.1.0, and stdio-only deployments stayed unaffected.
Azure mitigations: