Malicious MCP OAuth callback can switch transport to stdio and execute arbitrary local commands (RCE)
GHSA-4fc4-wcmh-4g86 · published 2026-10-21
- Severity
- Critical
- CVSS score
- 9.6
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 1.0.3
Connecting to an unknown MCP can immediately trigger RCE without any futher interaction with tools.
Upgrade @modelcontextprotocol/inspector to 1.0.3 or later, and @modelcontextprotocol/inspector-client to 1.0.3 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
The OAuth callback must not read any Inspector configuration from the callback URL. We can store the original OAuth connection parameters before redirecting and then on callback, parse only OAuth fields such as code, state, and error fields.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @modelcontextprotocol/inspector | npm | >= 0.13.0, <= 1.0.2 | 1.0.3 |
| @modelcontextprotocol/inspector-client | npm | >= 0.13.0, <= 1.0.2 | 1.0.3 |
4 registered MCP servers install an affected version, by the dependency versions deps.dev resolved for a fresh install. The trace says when.
- com.docfork/docfork-mcp@modelcontextprotocol/inspector@0.18.0
- io.github.docfork/docfork@modelcontextprotocol/inspector@0.18.0
- io.github.ref-tools/ref-tools-mcp@modelcontextprotocol/inspector@0.16.8
- io.github.taazkareem/clickup@modelcontextprotocol/inspector@0.20.0
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- Criticalgit_add runs submodule filter commands when gitlink mode is not 160000mcp-server-git
- Criticalmcp-server-git: unexpandable sparse index lets submodule filter drivers runmcp-server-git
- CriticalRemote MCP App can steal proxy auth token and execute arbitrary local commands (RCE)@modelcontextprotocol/inspector, @modelcontextprotocol/inspector-client, @modelcontextprotocol/inspector-server
- CriticalMCP Inspector proxy server lacks authentication between the Inspector client and proxy@modelcontextprotocol/inspector
- HighA remote MCP server can execute arbitrary code on the user's machine through the OAuth authorization URL (PowerShell subexpression injection@modelcontextprotocol/inspector
- HighIncomplete fix for CVE-2025-49596: DNS-rebinding info disclosure (API token + stored OAuth tokens) in MCP Inspector@modelcontextprotocol/inspector
- HighMissing Authentication for Critical Function in @modelcontextprotocol/inspector@modelcontextprotocol/inspector, @modelcontextprotocol/inspector-server
- HighMCP Inspector is Vulnerable to Potential Command Execution via XSS When Connecting to an Untrusted MCP Server@modelcontextprotocol/inspector
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP Inspector project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.