MCP Inspector: OAuth RCE, DNS rebinding, and how to audit it
MCP Inspector from 21 Oct 2026 (CVE-2026-119025) to 2.16.0 on 18 Nov: what affects Windows/WSL, what affects all, and how to harden it.
This article is for informational and educational purposes only. It is not a security audit, a penetration test or a promise that your systems are free of vulnerabilities or defects. Versions, fixes and dates are current as of the date shown above. Check your vendor's and your distribution's advisories before you act. Any change you apply is your responsibility. No exploit code is provided. Only test systems you own or are authorised to test.
If you use the MCP Inspector CLI (2.0.0–2.11.0, with default settings) on Windows or WSL outside a container, connecting it to a malicious MCP server was enough for that server to run code on your machine. No model, no tools, and no further click after connecting. On any OS, a malicious website open in your browser could also read the OAuth tokens that Inspector’s web UI stores.

In 30 seconds
- On 21 October 2026, MCP Inspector published nine security advisories in two batches. The most serious in v2 is CVE-2026-119025: RCE on Windows and WSL when opening a remote MCP server's OAuth authorization URL.
- Another advisory affects every operating system: through DNS rebinding, a website could steal the local proxy token and read your stored OAuth tokens.
- As of 25 November 2026, the recommended minimum version is 2.16.0 or later. And do not use DANGEROUSLY_OMIT_AUTH: not even localhost stays protected if untrusted local processes or users are present.
What MCP Inspector is, and why the model does not matter here
MCP Inspector is the MCP (Model Context Protocol) project's debugging tool. You use it to connect to an MCP server and test it by hand. By design, it is pointed at unknown or in-development servers.
When a team reviews MCP security, it usually looks at which tools the model can invoke. With Inspector that does not help. The serious bugs happen in the connection phase or in the local proxy, before the LLM makes any decision.
The two 21 October batches and the November advisories leave a clear lesson. A one-off 2025 patch did not close the local proxy's perimeter. And running Inspector with real stored credentials multiplies the impact of any client bug.
The nine advisories of 21 October, in short
- Six for the v1 line, fixed in 1.0.3. They include two critical RCEs, GHSA-4fc4-wcmh-4g86 and GHSA-6x67-4w4w-9f3w, and GHSA-wmjf-2m46-2352, a fail-open without an Origin header under DANGEROUSLY_OMIT_AUTH. That last advisory lists a patch only for v1, not for v2.
- Three for the v2 branch, fixed in version 2.12.0 of @modelcontextprotocol/inspector. GHSA-q978-78c7-phqw (CVE-2026-119025) is the Windows and WSL RCE. GHSA-vcc9-3xgm-p9v4 exposed tokens through DNS rebinding on any operating system. GHSA-m5pj-3536-3xcp left /api/fetch with no size limit.
CVE-2026-119025: remote code execution on Windows and WSL when opening OAuth
Advisory GHSA-q978-78c7-phqw was published on 21 October 2026. GitHub rates it High severity, 8.8 in CVSS 3.1, CWE-78 / CWE-88. On 29 October VulnCheck assigned it CVE-2026-119025, with 7.5 in CVSS 3.1 and 7.7 in CVSS 4.0.
It affects @modelcontextprotocol/inspector versions 2.0.0–2.11.0, on Windows and on WSL outside a container. macOS and Linux are not affected by this branch. The root cause is how the npm package open (versions 7.2.0–10.x, pinned as “^10.2.0” in Inspector) opened the authorization URL on those platforms.
Everything happens on the network and operating-system side. The diagram sums up the chain and where the patch cuts it:

- The developer connects the Inspector CLI to a remote or test MCP server.
- The server answers 401 with a WWW-Authenticate header and serves OAuth discovery documents (RFC 8414 / RFC 9728). In them it freely chooses the authorization_endpoint value.
- The CLI opens that URL in the browser without asking. It does so by default if stderr is an interactive terminal and MCP_AUTO_OPEN_ENABLED=false is not set (and it is not running under Vitest).
- On Windows or WSL outside a container, open v10.2.0 puts the target inside a double-quoted PowerShell string, encodes it as Base64 UTF-16LE and launches powershell with -EncodedCommand.
- WHATWG URL serialization keeps characters such as $, parentheses, brackets, comma, colon, + and &. That is enough for PowerShell to evaluate $(...) subexpressions before it even tries to open the browser.
The language model plays no part. No tool is called, and in the CLI with default settings no click on a link is needed after connecting.
On macOS and Linux this branch does not apply: open invokes the system binaries through spawn with an argument vector, not through a command interpreter. The same pattern had already appeared in CVE-2025-6514 (mcp-remote), whose first fix was partial and which later adopted strict-url-sanitise.
Inspector 2.12.0 closes the execution vector by updating the open dependency to version 11.0.0, which escapes the argument in PowerShell with executePowerShell.escapeArgument. Inspector also restricts automatic opening to the http(s) scheme and opens the validated URL instead of the raw input; that scheme restriction alone does not stop $(...) subexpressions inside an https:// URL, so open 11.0.0 is what neutralizes the RCE.
Why the 2025 patches were not enough: DNS rebinding and Origin
In June 2025, CVE-2025-49596 (GHSA-7f8r-222p-6f5g, Critical severity; 9.4 in CVSS 4.0, in versions before 0.14.1) had already shown the problem. An unauthenticated local Inspector proxy let a browser launch stdio processes. The 2025 fix added a session token and an Origin header check.
Two advisories from 21 October 2026 showed that defense was incomplete. The first uses DNS rebinding: a malicious domain changes its DNS to point to 127.0.0.1, so a website you visit talks to the local proxy as if it were same-origin.

- GHSA-vcc9-3xgm-p9v4 (DNS rebinding; versions 2.0.0–2.11.0; patched in 2.12.0; CWE-200 / CWE-346). It affects any operating system in a local web deployment (port 6274).
- The Origin middleware let through any request without an Origin header, which is what a browser sends after DNS rebinding toward 127.0.0.1. There was also no Host header check, and the GET / and SPA fallback routes injected window.__INSPECTOR_API_TOKEN__ without authentication.
- With the stolen token, a site visited in the browser could read /api/storage/oauth (stored OAuth access and refresh tokens for real servers), /api/import-source and /api/storage/client.
- GHSA-wmjf-2m46-2352 (High severity; 7.5 in CVSS 3.1; CWE-306). With Inspector run with DANGEROUSLY_OMIT_AUTH=true, the remaining Origin check still let through requests without that header: a non-browser client without Origin could call POST /api/mcp/connect (in v2, reproduced on 2.5.0) or GET /stdio (in v1, 0.14.3 and 1.0.2) and launch arbitrary stdio processes without authentication.
- The advisory documents the 1.0.3 patch for the v1 line (0.14.1–1.0.2), and records no fixed v2 version in its structured ranges. In v2, the practical mitigation is not to use DANGEROUSLY_OMIT_AUTH.
To close DNS rebinding, Inspector 2.12.0 strictly validates the Host header. It returns 403 to hosts outside the allowlist, which you can extend with MCP_INSPECTOR_ALLOWED_HOSTS behind a reverse proxy. It also adds optional TLS for the web UI through INSPECTOR_TLS_KEY_PATH and INSPECTOR_TLS_CERT_PATH.
From 2.12.0 to 2.16.0: the memory bugs that remained
Staying on 2.12.0 is not enough either as of 25 November 2026. These are the memory-exhaustion bugs, in order:
- 21 October: GHSA-m5pj-3536-3xcp (Moderate severity; CWE-400 / CWE-770). The POST /api/fetch proxy read the whole body with res.text(), with no size limit, before repackaging it as JSON. An MCP server or an OAuth/CIMD target could exhaust the Node process memory. 2.12.0 added a 4 MiB cap on /api/fetch; on the v1 line, 1.0.3 set 5 MiB on /fetch.
- November: new advisories on schema validation, CSP frame navigation in MCP Apps, server.json import and memory use. 2.15.0 fixed GHSA-9w48-x22j-rrm7 (12 November) by capping SSE responses on POST at 1 MiB.
- 18 November 2026: GHSA-3xgv-mvj6-g78r, a denial of service (DoS) in SSE streams (Moderate severity; 6.5 in CVSS 3.1; affects 2.7.0–2.15.0 and ≤ 1.0.5). The watchLongLivedStream reader on the GET text/event-stream channel (legacy sse transport) kept accumulating lines without a newline until V8 ran out of memory. 2.15.0 did not close it. It was closed in 2.16.0, and in 1.0.6 on the v1 line, deprecated since 1.0.1.
Opinion: many teams building agents treat MCP Inspector as a simple curl with a GUI. They run it on the same laptop that holds their corporate sessions, SSH keys and OAuth tokens. The October and November advisories show that a debugging client that negotiates automatic OAuth discovery is network-boundary code. It is worth running it in a container or a disposable profile when you point it at external servers.
Checklist: verify your version and harden MCP Inspector
# Checks in a development environment (not run in production). Avoid launching Inspector as root or with real production tokens.
npx --no-install @modelcontextprotocol/inspector --version
# If you pin the version in package.json or internal scripts, require >= 2.16.0 (and retire v1).
# In automated tests or against unknown servers, pin the version and disable automatic browser opening:
MCP_AUTO_OPEN_ENABLED=false npx @modelcontextprotocol/inspector@2.16.0 --cli https://example.invalid/mcp- Update now to @modelcontextprotocol/inspector >= 2.16.0. Remove global installs or scripts pinned to 2.0.0–2.15.0 or to the deprecated v1 branch.
- Clean up and rotate the credentials in ~/.mcp-inspector if you used versions ≤ 2.11.0 while browsing the web in parallel, with real OAuth tokens stored in Inspector's store.
- Set MCP_AUTO_OPEN_ENABLED=false on Windows and WSL when you run the CLI against third-party MCP servers or URLs you have not audited (that variable only applies to the CLI; it does not cover the web deployment).
- Do not use DANGEROUSLY_OMIT_AUTH=true, not even on localhost if there are other untrusted local processes or users, because of the GHSA-wmjf-2m46-2352 fail-open without Origin. Keep authentication on and bound to 127.0.0.1. If you expose the UI behind a reverse proxy, set MCP_INSPECTOR_ALLOWED_HOSTS explicitly and enable TLS.
- Avoid the legacy sse transport on new servers. Move to Streamable HTTP with current security headers and stream limits.
FAQ
- Does CVE-2026-119025 (GHSA-q978-78c7-phqw) affect macOS or Linux? No. The advisory itself confirms macOS and Linux are not affected: open invokes open and xdg-open through spawn with separate arguments, without passing the URL through PowerShell.
- Is updating to MCP Inspector 2.12.0 enough? No. 2.12.0 fixes the three main v2 problems from 21 October 2026: the Windows/WSL RCE, the web proxy DNS rebinding and the /api/fetch limit. But new advisories appeared between 4 and 18 November, including GHSA-3xgv-mvj6-g78r. The recommended version as of 25 November 2026 is 2.16.0 or later.
- Is the MCP Inspector 1.x line still safe if I apply 1.0.6? The v1 line has been deprecated since 1.0.1 (28 July 2026) and only receives security patches. They include 1.0.3 on 21 October, which closed two critical RCEs (GHSA-4fc4-wcmh-4g86 and GHSA-6x67-4w4w-9f3w) as well as GHSA-wmjf-2m46-2352, and 1.0.6 on 18 November 2026. For ongoing use, migrate to v2 (>= 2.16.0).
- Which other packages share the open flaw behind CVE-2026-119025? The CVE record lists the npm package sindresorhus/open (7.2.0–10.x, fixed in 11.0.0) and opencode (anomalyco/opencode; npm package opencode-ai, 1.0.137–1.18.32, fixed in 1.18.33).
Related reading
- MCP OAuth 2.1 versus OAuth 2.0 and earlier MCP revisions
- Skills over MCP in Claude: remote instructions and SEP-2640
- MCP and AI tool security: what to check before connecting your agents
Source registry
- GitHub Advisory GHSA-q978-78c7-phqw: RCE via OAuth authorization URL on Windows and WSL (21 October 2026)
- CVE.org / NVD: official record CVE-2026-119025 (29 October 2026)
- GitHub Advisory GHSA-vcc9-3xgm-p9v4: DNS rebinding and token disclosure (21 October 2026)
- GitHub Advisory GHSA-wmjf-2m46-2352: Origin fail-open under DANGEROUSLY_OMIT_AUTH (21 October 2026)
- GitHub Advisory GHSA-m5pj-3536-3xcp: /api/fetch with no size limit (21 October 2026)
- GitHub Advisories v1 GHSA-4fc4-wcmh-4g86 and GHSA-6x67-4w4w-9f3w + Release 1.0.3 (21 October 2026)
- MCP Inspector Release 2.12.0 (21 October 2026)
- GitHub Advisory GHSA-9w48-x22j-rrm7: unbounded SSE POST responses (fixed in 2.15.0; 12 November 2026)
- GitHub Advisory GHSA-3xgv-mvj6-g78r: unbounded read on GET event-stream SSE (18 November 2026)
- MCP Inspector Release 2.16.0 (18 November 2026)
- GitHub Advisory GHSA-7f8r-222p-6f5g (CVE-2025-49596, 13 June 2025)
Let an agent prepare this. Your team approves it.
An agent can track advisories, check them against your versions and prepare the update for your team to review and apply. We design that workflow: scoped permissions, human approval before any change, and a log of every step. We do not audit or patch your systems.


