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.
| Disclosed | June 13, 2025 |
|---|---|
| Affected | @modelcontextprotocol/inspector, Anthropic |
| Type | Vulnerability |
| Status | Resolved |
| CVE | CVE-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
- Upgrade to
@modelcontextprotocol/inspector0.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. - Do not bind the Inspector to
0.0.0.0or expose it to untrusted networks, and stop it when you are not using it. - If an old version ran while you browsed untrusted sites, rotate the API keys in your MCP client configs and
.envfiles, along with cloud and GitHub credentials stored on the machine. - 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
- Oligo says Anthropic told it another researcher had reported the issue on this date. Source
- Oligo Security reports the vulnerability to Anthropic through HackerOne. Source
- 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
- 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/inspectorversions 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.