Vulnerability · June 13, 2025

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

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.

DisclosedJune 13, 2025
Affected@modelcontextprotocol/inspector, Anthropic
TypeVulnerability
StatusResolved
CVECVE-2025-49596

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.

Am I 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 now

  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

Guides to the credentials this incident put at risk:

Timeline

  1. Oligo says Anthropic told it another researcher had reported the issue on this date. Source
  2. Oligo Security reports the vulnerability to Anthropic through HackerOne. Source
  3. 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
  4. Oligo publishes its write-up showing exploitation from a browser through the 0.0.0.0 address and DNS rebinding. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

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

Frequently asked questions

Am I affected by the @modelcontextprotocol/inspector incident?

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 was exposed in the @modelcontextprotocol/inspector incident?

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.

Which keys should I rotate?

Rotate any Anthropic, OpenAI, GitHub, AWS (IAM access keys) credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.