A remote MCP server can execute arbitrary code on the user's machine through the OAuth authorization URL (PowerShell subexpression injection
GHSA-q978-78c7-phqw · published 2026-10-21
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2.12.0
A remote MCP server that a user has connected to can run arbitrary code as that user on Windows and WSL. It happens during connection, with no prompt, no tool call, and no model involvement. | Outcome | Status | | :---- | :---- | | Arbitrary code execution as the invoking user | demonstrated at the sink | | Requires a click or approval | no | | Requires the model to choose anything | no | | Requires attacker control of local configuration | no | The server does not need to have been malicious when it was added. …
Upgrade @modelcontextprotocol/inspector to 2.12.0 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.
Any one of these closes it. The first is a dependency bump: 1. Move to open v11. v11.0.0 escapes the target through executePowerShell.escapeArgument. All three package.json files pin "open": "^10.2.0". A caret range on 10.x never resolves to 11.x, so no routine npm update will pick the fix up; it needs a deliberate major bump. 2. Sanitise before calling the opener. strict-url-sanitise percent-encodes $, which neutralises the payload. I verified that. It is already the ecosystem's choice for this exact call: mcp-remote adopted it as the fix for CVE-2025-6514, and Cherry Studio calls it on the same OAuth path. …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @modelcontextprotocol/inspector | npm | >= 2.0.0, <= 2.11.0 | 2.12.0 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalMalicious MCP OAuth callback can switch transport to stdio and execute arbitrary local commands (RCE)@modelcontextprotocol/inspector, @modelcontextprotocol/inspector-client
- 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
- 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.