CVE-2025-49596: MCP Inspector proxy server lacks authentication between the Inspector client and proxy
CVE-2025-49596 is a critical remote code execution flaw in MCP Inspector, the developer tool for testing MCP servers. Its local proxy had no authentication, so any request that reached it could start a command over stdio. A web page the developer visits can send that request. Versions before 0.14.1 are affected; upgrade to 0.14.1.
Published Jun 13, 2025 · Updated Jul 9, 2025 · Analysis Nov 1, 2026
What an attacker can do
MCP Inspector has a browser client and a proxy. The proxy listens on port 6277 by default and bridges the client to MCP servers. Its /sse endpoint accepts a stdio transport request with command and args query parameters, and the proxy runs that command on the host. Before 0.14.1, nothing authenticated the client, so whoever could send the request chose the command.
The Oligo write-up shows how a remote attacker gets there. A malicious page runs JavaScript that sends the request to 0.0.0.0:6277, which browsers did not fully block, so it reaches the local proxy even when it is bound to localhost. A DNS rebinding variant works as well. The developer only has to browse to the page while Inspector is running (UI:P in the CVSS 4.0 vector, score 9.4). The result is command execution with the developer's rights, giving the attacker source code, keys, tokens and a path into the network.
The fix adds a session token that the proxy requires by default, similar to Jupyter notebooks, plus Origin and Host header checks that reject non-allowed origins. EPSS is near the 99th percentile.
Who is affected
The npm package @modelcontextprotocol/inspector before 0.14.1. The risk appears while the Inspector proxy runs, for example through mcp dev or npx. Check global and project installs:
npm ls -g @modelcontextprotocol/inspector
npm ls @modelcontextprotocol/inspectorSearch node_modules in projects that install it as a dependency.
@modelcontextprotocol/inspector
- Ecosystem
- npm
- Affected
- < 0.14.1
- Fixed in
- 0.14.1
- Check
npm ls @modelcontextprotocol/inspector
How to fix it
Upgrade to 0.14.1 or later, both globally and in every project that installs the Inspector under node_modules:
npm install -g @modelcontextprotocol/[email protected]The new proxy requires a session token by default and checks Origin and Host. Do not turn the authentication off, and do not bind the proxy to 0.0.0.0 or expose port 6277 to other machines. Stop Inspector when you are not using it.
How to tell if you were hit
Check shell history and process lists for child processes started by the Inspector proxy (a node process on port 6277) that you did not ask for. Look in browser history for unfamiliar sites visited while Inspector ran. Check for connections to port 6277 from other hosts, and for requests to /sse with a stdio transport and an unexpected command parameter. Beam records agent shell commands, which helps only if an AI agent was in the chain.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Versions of MCP Inspector below 0.14.1 are vulnerable to remote code execution due to lack of authentication between the Inspector client and proxy, allowing unauthenticated requests to launch MCP commands over stdio. Users should immediately upgrade to version 0.14.1 or later to address these vulnerabilities.
Credit: Rémy Marot
Credited to JLLeitschuh.
Questions
- Which MCP Inspector version fixes CVE-2025-49596?
0.14.1. It adds a session token by default and Origin and Host checks.
- Does it affect me if Inspector only listens on localhost?
Yes. The attack works through the victim's browser, which reached the proxy via 0.0.0.0 or DNS rebinding according to the Oligo write-up.
- What does the attacker need to do?
Get the developer to visit a malicious page while Inspector is running. No account or credentials are needed.
- Is there a public exploit?
The Oligo write-up describes the attack. No source we read confirms exploitation in the wild, and it is not marked as CISA KEV in our data.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
