# MCP Inspector before 0.14.1 let any web page run commands on a developer's machine (CVE-2025-49596)

Source: https://botpassword.com/incidents/2025-06-mcp-inspector-rce
Disclosed: 2025-06-13 · Type: Vulnerability · Status: Resolved · Updated: 2026-10-25

MCP Inspector, the official tool for testing Model Context Protocol servers, ran a local proxy with no authentication before version 0.14.1, so any web page the developer visited could send it a request that launched an arbitrary command over stdio. That gave a malicious site code execution with the developer's access to local API keys, MCP server configs and cloud credentials. Upgrade `@modelcontextprotocol/inspector` to 0.14.1 or later, including copies inside project `node_modules`.

Identifiers: CVE-2025-49596, GHSA-7f8r-222p-6f5g

## What was exposed

No incident of exploitation was reported; this is a vulnerability that put credentials at risk. Before 0.14.1 the Inspector's proxy, listening on port 6277, accepted unauthenticated requests to its `/sse` endpoint with `transportType=stdio` plus `command` and `args` parameters and executed them. Oligo showed a public web page reaching the proxy through the 0.0.0.0 address or DNS rebinding, so simply visiting a malicious site while the Inspector was running was enough. A command run this way has the developer's user rights: it can read MCP client configuration files that often contain API keys in plain text, `.env` files, SSH keys, cloud CLI credentials and source code. Oligo also found Inspector instances exposed directly to the internet.

## Who is affected

You are affected if you ran `@modelcontextprotocol/inspector` below 0.14.1, for example with `npx @modelcontextprotocol/inspector`, while browsing the web, or if an Inspector instance was reachable from a network you do not control. Check `npm list -g` and every project's `node_modules` for an older copy. If you cannot rule out that a malicious page reached the proxy while it was running, treat secrets on that machine as exposed.

## What to do

1. Upgrade to `@modelcontextprotocol/inspector` 0.14.1 or later globally and in every project that pins it; version 0.14.1 requires a session token and checks the request's origin and Host header.
2. Do not bind the Inspector to `0.0.0.0` or expose it to untrusted networks, and stop it when you are not using it.
3. If an old version ran while you browsed untrusted sites, rotate the API keys in your MCP client configs and `.env` files, along with cloud and GitHub credentials stored on the machine.
4. Move API keys out of plain-text MCP configuration files where your client supports environment variables or a secret store.

## Keys to rotate

- [Anthropic](https://botpassword.com/keys/anthropic)
- [OpenAI](https://botpassword.com/keys/openai)
- [GitHub](https://botpassword.com/keys/github)
- [AWS (IAM access keys)](https://botpassword.com/keys/aws)

## Timeline

- 2025-03-26: Oligo says Anthropic told it another researcher had reported the issue on this date. ([source](https://www.oligo.security/blog/critical-rce-vulnerability-in-anthropic-mcp-inspector-cve-2025-49596))
- 2025-04-18: Oligo Security reports the vulnerability to Anthropic through HackerOne. ([source](https://www.oligo.security/blog/critical-rce-vulnerability-in-anthropic-mcp-inspector-cve-2025-49596))
- 2025-06-13: GHSA-7f8r-222p-6f5g and CVE-2025-49596 are published, rated critical (CVSS v4 9.4), with 0.14.1 as the fixed version. ([source](https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-7f8r-222p-6f5g))
- 2025-06-27: Oligo publishes its write-up showing exploitation from a browser through the 0.0.0.0 address and DNS rebinding. ([source](https://www.oligo.security/blog/critical-rce-vulnerability-in-anthropic-mcp-inspector-cve-2025-49596))

## Indicators

- `@modelcontextprotocol/inspector` versions below 0.14.1.
- Requests to `/sse?transportType=stdio&command=…` on local port 6277 from a browser origin.

## Sources

- https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-7f8r-222p-6f5g
- https://www.oligo.security/blog/critical-rce-vulnerability-in-anthropic-mcp-inspector-cve-2025-49596
- https://nvd.nist.gov/vuln/detail/CVE-2025-49596
