---
title: "MCP Horror Stories: The Security Issues Threatening AI Infrastructure"
description: "MCP servers expose AI agents to six recurring vulnerability classes: OAuth discovery flaws (e.g. CVE-2025-6514 in mcp-remote), command injection (reported in 43% of analyzed servers), unrestricted network fetches (33%), file path leakage (22%), tool poisoning (5.5%) and plaintext secret exposure."
url: "https://swe.quest/articles/mcp-horror-stories-the-security-issues-threatening-ai-infrastructure-11571cbab816ae96"
canonical: "https://www.docker.com/blog/mcp-security-issues-threatening-ai-infrastructure/"
source: "Docker"
published: "2025-07-31"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 10
tags: ["ai-agents","security","supply-chain-security","containers","sandboxing"]
---

# MCP Horror Stories: The Security Issues Threatening AI Infrastructure

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-07-31, 10 min read, Opinion. Original: [https://www.docker.com/blog/mcp-security-issues-threatening-ai-infrastructure/](https://www.docker.com/blog/mcp-security-issues-threatening-ai-infrastructure/)

## Summary

MCP servers expose AI agents to six recurring vulnerability classes: OAuth discovery flaws (e.g. CVE-2025-6514 in mcp-remote), command injection (reported in 43% of analyzed servers), unrestricted network fetches (33%), file path leakage (22%), tool poisoning (5.5%) and plaintext secret exposure. Each class comes with checks to apply before installing a server, such as avoiding servers that build shell commands from input or take credentials as environment variables. Docker's MCP Gateway is presented as the mitigation, running each server in a container with no-new-privileges, CPU and memory limits, signature verification, L7 network allowlisting via --block-network, secret scanning via --block-secrets and call logging.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Sandboxing & isolation](https://swe.quest/tags/sandboxing.md) (Security)

## Prerequisites

- Model Context Protocol basics
- Docker containers ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- OAuth flows ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))

## Keywords

Model Context Protocol, Docker MCP Gateway, Docker MCP Toolkit, mcp-remote, CVE-2025-6514, tool poisoning

## Related posts

- [MCP Security: A Developer’s Guide](https://swe.quest/articles/mcp-security-a-developer-s-guide-ee8f7d25fd64b2f2.md): Docker · 2025-09-16 · Easy · 8 min read · AI agents, Security, Supply chain security, Containers
  MCP servers expand what AI agents can do but introduce risks across four categories: misconfigurations and weak defaults, malicious or compromised servers, secret leakage, and prompt injection or tool poisoning.
- [Securing Model Context Protocol: Safer Agentic AI with Containers](https://swe.quest/articles/securing-model-context-protocol-safer-agentic-ai-with-containers-f3a8a077a2aa77b5.md): Docker · 2025-05-06 · Easy · 9 min read · AI agents, Sandboxing & isolation, Supply chain security, Containers
  Running MCP servers via npx on the host with plaintext environment-variable secrets leaves agentic tooling exposed to supply-chain tampering, credential leakage, and attacks such as rug pulls, tool shadowing, and tool poisoning.
- [Docker MCP Gateway: Open Source, Secure Infrastructure for Agentic AI](https://swe.quest/articles/docker-mcp-gateway-open-source-secure-infrastructure-for-agentic-ai-8fe8cf36e09a039e.md): Docker · 2025-07-09 · Medium · 3 min read · AI agents, Containers, Security, Open source
  Docker's MCP Gateway, now open source, is a single enforcement point between AI agents and the MCP servers they call, aggregating multiple containerized servers behind one interface and integrating with Docker Compose.
- [MCP Horror Stories: The Supply Chain Attack](https://swe.quest/articles/mcp-horror-stories-the-supply-chain-attack-4511e601e3b80aa5.md): Docker · 2025-08-07 · Medium · 9 min read · Supply chain security, Vulnerability research, AI agents, Application security, Containers
  CVE-2025-6514 (CVSS 9.6) in mcp-remote, an OAuth proxy downloaded over 437,000 times, let a malicious MCP server achieve remote code execution on developer machines. mcp-remote passed the server-supplied authorization\_endpoint unvalidated to the npm 'open' package.
- [MCP Horror Stories: The GitHub Prompt Injection Data Heist](https://swe.quest/articles/mcp-horror-stories-the-github-prompt-injection-data-heist-118a1d699702a7aa.md): Docker · 2025-08-14 · Medium · 15 min read · AI agents, Application security, Identity & auth, LLMs
  A prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
