A blog post could run commands on your laptop through MCP Inspector. What localhost doesn't protect Security researchers at Oligo Security disclosed CVE-2025-49596, a critical (CVSS 9.4) flaw in MCP Inspector, the official debugging tool for MCP servers, that let a malicious web page trigger arbitrary local commands through the tool's unauthenticated proxy on port 6277. The attack relied on the browser's willingness to send plain GET requests to 0.0.0.0 and on DNS rebinding, and worked even when the proxy was bound to 127.0.0.1. Anthropic fixed it in version 0.14.1 by adding a per-launch session token and an Origin allow-list, though follow-up advisories (GHSA-vcc9-3xgm-p9v4, GHSA-wmjf-2m46-2352) documented further bypasses fixed in 2.12.0 and 1.0.3. This is the request Oligo Security used to show CVE-2025-49596: http://0.0.0.0:6277/sse?transportType=stdio&command=touch&args=%2Ftmp%2Fexploited-from-the-browser Port 6277 is where MCP Inspector's proxy listened. Inspector is the official tool for poking at an MCP server while you build it: a web UI on one port, and a proxy on another that connects to your server. transportType=stdio told the proxy to start the server as a local process, and command and args said which process. Before version 0.14.1 the proxy asked for no token, so it started whatever it was given. In the demo that was touch . A reverse shell fits in the same two parameters. The request came from a web page. Oligo's example was a blog post about MCP with a bit of JavaScript in it. You read it while Inspector runs in another terminal, and the script sends that request to your machine. A browser won't let a page read a response from another origin, but it still sends a plain GET. For most local services that's harmless, because nothing happens until someone reads the answer. Inspector did the work on receipt, so the page never needed to see the response. Then the address. 0.0.0.0 reaches services on your own machine, and browsers don't treat it with the suspicion they give localhost and private IPs. Oligo called this out in 2024 as the "0.0.0.0-day", and their write-up on this CVE says Chromium and Firefox still let it through. They showed DNS rebinding as a second route: a domain that first resolves to the attacker's server and then to 127.0.0.1 , so the browser keeps treating the page and your local port as the same site. Oligo also notes the attack worked even when the proxy listened only on 127.0.0.1 . Listening on loopback decides which machine can connect, and the browser on that machine was the way in. The score is 9.4 under CVSS 4.0, from GitHub's advisory. The only thing it needs from you is the page visit. Oligo reported it to Anthropic on 18 April 2025, and the fix shipped on 13 June in 0.14.1. It put two checks in front of the sensitive routes: a random session token generated at each launch, the way Jupyter does it, and an allow-list for the Origin header. Inspector opens the UI with the token in the URL, so your tab has it and a page on another site doesn't. The Origin check is for the browser routes, since a cross-site request carries the attacker's origin. It also changed the proxy's default bind from every interface to 127.0.0.1 , which keeps other machines off the port but, as Oligo showed, not the browser on yours. Both were published as advisories on the Inspector repo on 21 October 2026, a bit over a year later. In the v2 rewrite, versions 2.0.0 to 2.11.0, it was DNS rebinding again GHSA-vcc9-3xgm-p9v4 https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-vcc9-3xgm-p9v4 , fixed in 2.12.0 . The Origin check let through any request with no Origin header, and browsers leave it off same-origin GETs. Nothing checked the Host header. And GET / , which sat outside the protected routes, served the page with the API token written into it. After a rebind the attacker's page fetched / as a same-origin request, read the token, and used it to read the stored OAuth tokens and local client config. Starting a process still failed, because that endpoint is a POST and browsers do send Origin on a POST. Every OAuth token Inspector held was readable anyway. The older line, 0.14.1 to 1.0.2, had a gap that only matters if you turned the token off with DANGEROUSLY OMIT AUTH GHSA-wmjf-2m46-2352 https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-wmjf-2m46-2352 , fixed in 1.0.3 . The Origin check was then the only thing left, and it also waved through requests with no Origin header. A browser sends one on the POST that starts a process. A script talking to the port directly doesn't have to. So with that flag set, anything that could reach the port without a browser could launch processes. The current Inspector binds 127.0.0.1 by default, generates a token per launch or takes yours from MCP INSPECTOR API TOKEN , checks Origin and Host against allow-lists, and refuses an all-interfaces HOST unless you also set DANGEROUSLY BIND ALL INTERFACES . Its docs say why in one line: the backend spawns processes on request. Two settings undo most of that. DANGEROUSLY OMIT AUTH=true removes the token. DANGEROUSLY BIND ALL INTERFACES puts the backend on your network, and the Docker image sets it because inside a container it has to. That's why the Docker docs tell you to publish the port as -p 127.0.0.1:6274:6274 . A bare -p 6274:6274 publishes it on every interface of your machine. None of this is specific to Inspector. Any dev tool that opens a port while you work can be checked the same way in a couple of minutes. For MCP servers you write yourself, the MCP security checklist https://dev.to/bloqarl/an-mcp-security-checklist-for-developers-wiring-agents-to-real-tools-l71 I posted in October covers the server side. See what's listening, and on which address: macOS and Linux lsof -nP -iTCP -sTCP:LISTEN Linux ss -ltnp 127.0.0.1: