---
title: "MCP Horror Stories: The Drive-By Localhost Breach"
description: "CVE-2025-49596 (CVSS 9.4) let any website achieve remote code execution on developer machines running MCP Inspector below 0.14.1."
url: "https://swe.quest/articles/mcp-horror-stories-the-drive-by-localhost-breach-5adbe194ac2f44eb"
canonical: "https://www.docker.com/blog/mpc-horror-stories-cve-2025-49596-local-host-breach/"
source: "Docker"
published: "2025-09-23"
difficulty: "medium"
kind: "Incident"
reading_minutes: 16
tags: ["vulnerability-research","appsec","ai-agents","browsers"]
---

# MCP Horror Stories: The Drive-By Localhost Breach

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-09-23, 16 min read, Incident. Original: [https://www.docker.com/blog/mpc-horror-stories-cve-2025-49596-local-host-breach/](https://www.docker.com/blog/mpc-horror-stories-cve-2025-49596-local-host-breach/)

## Summary

CVE-2025-49596 (CVSS 9.4) let any website achieve remote code execution on developer machines running MCP Inspector below 0.14.1. The Inspector's Node.js proxy listened on 0.0.0.0:6277 with no authentication and accepted requests from any origin. Malicious JavaScript could send no-cors GET requests to its /sse endpoint with transportType=stdio and arbitrary command arguments, and because browsers treat 0.0.0.0 like localhost (the "0.0.0.0-day" flaw), those requests could spawn processes that read SSH keys, dump environment variables or clone private repos. The fix is upgrading to 0.14.1+, and Docker pitches running its MCP Gateway with stdio transport so no HTTP endpoint is exposed to browsers at all.

Written by swe.quest, not by the author.

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

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Application security](https://swe.quest/tags/appsec.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- Model Context Protocol basics
- CORS and same-origin policy
- localhost web services

## Keywords

CVE-2025-49596, MCP Inspector, Model Context Protocol, Docker MCP Gateway, 0.0.0.0-day, Server-Sent Events

## Related posts

- [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 Security Issues Threatening AI Infrastructure](https://swe.quest/articles/mcp-horror-stories-the-security-issues-threatening-ai-infrastructure-11571cbab816ae96.md): Docker · 2025-07-31 · Medium · 10 min read · AI agents, Security, Supply chain security, Containers, Sandboxing & isolation
  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.
- [Introducing the Safari MCP server for web developers](https://swe.quest/articles/introducing-the-safari-mcp-server-for-web-developers-5cebd79747a867c7.md): WebKit · 2026-07-01 · Medium · 7 min read · AI agents, Browsers, Debugging, Developer tools, AI for coding
  Safari 27 and Safari Technology Preview 247 ship a Model Context Protocol server, exposed via safaridriver --mcp, that lets any MCP-compatible coding agent drive a local Safari window.
- [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.
- [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.

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)
