# npm open PowerShell injection (CVE-2026-119025): malicious MCP servers can run code on Windows/WSL via OpenCode and MCP Inspector sign-in · pwn.watch > A command-injection flaw in the widely used npm package open (versions 7.2.0 to before 11.0.0) lets a crafted URL run PowerShell code on Windows and WSL: open placed the URL unescaped inside a PowerShell double-quoted string, where $(...) subexpressions execute. Tools that open server-supplied URLs are exposed. A malicious or hijacked remote MCP server can answer with an OAuth authorization endpoint containing a payload, and it runs as soon as the developer connects or signs in. Affected apps named in the CVE record are the OpenCode AI coding agent 1.0.137 to 1.18.32 (fixed in 1.18.33 on Sep 28 without an advisory) and MCP Inspector 2.0.0 to 2.11.0 (fixed in 2.12.0, GHSA-q978-78c7-phqw). open itself fixed the escaping in 11.0.0. VulnCheck assigned CVE-2026-119025 on Oct 29 2026 and rates it High (CVSS 4.0 7.7); Pillar Security, which found it, had proposed 9.8 for OpenCode. macOS and Linux are not affected; no in-the-wild exploitation reported. Page: https://pwn.watch/i/opencode-mcp-oauth-rce-windows · generated 2026-11-24T16:06:03.357Z ## Status - Severity: high · status: live · patch: patched - Product: npm open package (7.2.0 to 10.x) and apps using it on Windows/WSL, including OpenCode and MCP Inspector - Started: 2026-10-19 - CVEs: CVE-2026-119025 - Affected: npm open 7.2.0 to before 11.0.0 on Windows and WSL; OpenCode (opencode-ai) 1.0.137 through 1.18.32; @modelcontextprotocol/inspector 2.0.0 through 2.11.0 - Fixed in: open 11.0.0 (requires Node.js 20); OpenCode 1.18.33; @modelcontextprotocol/inspector 2.12.0 ## Follow this incident - RSS (one item per update): https://pwn.watch/i/opencode-mcp-oauth-rce-windows/feed.xml - JSON Feed: https://pwn.watch/i/opencode-mcp-oauth-rce-windows/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/opencode-mcp-oauth-rce-windows.json - This file: https://pwn.watch/i/opencode-mcp-oauth-rce-windows/llms.txt ## Updates (newest first) - 2026-10-29: VulnCheck assigns CVE-2026-119025 to the root cause in open 7.2.0 to before 11.0.0, listing OpenCode and MCP Inspector as affected; rated High (CVSS 4.0 7.7). (https://www.cve.org/CVERecord?id=CVE-2026-119025) - 2026-10-22: The Hacker News reports the flaw; upgrade to 1.18.33, run `opencode mcp list`, and remove unvetted remote MCP servers. (https://thehackernews.com/2026/10/opencode-flaw-lets-malicious-mcp.html) - 2026-10-21: MCP Inspector publishes GHSA-q978-78c7-phqw (high): a remote MCP server can run code through the OAuth authorization URL on Windows and WSL; fixed in 2.12.0. (https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-q978-78c7-phqw) - 2026-10-19: Pillar Security discloses the flaw publicly. Anomaly declined to request a CVE, saying user-configured MCP servers are outside its trust boundary. (https://x.com/Pillar_sec/status/2112166888985722937) - 2026-09-28: OpenCode 1.18.33 ships the fix as a routine browser-launch refactor; release notes don't mention security. (https://thehackernews.com/2026/10/opencode-flaw-lets-malicious-mcp.html) - 2026-08-29: Pillar Security privately reports the flaw to Anomaly. (https://thehackernews.com/2026/10/opencode-flaw-lets-malicious-mcp.html) - 2025-11-15: open 11.0.0 ships with "Fix PowerShell argument escaping" (commit 274d704), which closes the injection in the package itself. (https://github.com/sindresorhus/open/releases/tag/v11.0.0) ## Fix brief # Security brief: npm open PowerShell injection (CVE-2026-119025): malicious MCP servers can run code on Windows/WSL via OpenCode and MCP Inspector sign-in Source: https://pwn.watch/i/opencode-mcp-oauth-rce-windows · status: live · severity: high · updated Nov 7, 2026, 14:15 UTC ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is A command-injection flaw in the widely used npm package open (versions 7.2.0 to before 11.0.0) lets a crafted URL run PowerShell code on Windows and WSL: open placed the URL unescaped inside a PowerShell double-quoted string, where $(...) subexpressions execute. Tools that open server-supplied URLs are exposed. A malicious or hijacked remote MCP server can answer with an OAuth authorization endpoint containing a payload, and it runs as soon as the developer connects or signs in. Affected apps named in the CVE record are the OpenCode AI coding agent 1.0.137 to 1.18.32 (fixed in 1.18.33 on Sep 28 without an advisory) and MCP Inspector 2.0.0 to 2.11.0 (fixed in 2.12.0, GHSA-q978-78c7-phqw). open itself fixed the escaping in 11.0.0. VulnCheck assigned CVE-2026-119025 on Oct 29 2026 and rates it High (CVSS 4.0 7.7); Pillar Security, which found it, had proposed 9.8 for OpenCode. macOS and Linux are not affected; no in-the-wild exploitation reported. Severity detail: VulnCheck rates CVE-2026-119025 High (CVSS 4.0 7.7, CVSS 3.1 7.5); GitHub rates the MCP Inspector advisory high; Pillar Security proposed 9.8 for OpenCode; no known exploitation - Product: npm open package (7.2.0 to 10.x) and apps using it on Windows/WSL, including OpenCode and MCP Inspector - CVE / advisory ids: CVE-2026-119025 ## Affected versions - npm open 7.2.0 to before 11.0.0 on Windows and WSL - OpenCode (opencode-ai) 1.0.137 through 1.18.32 - @modelcontextprotocol/inspector 2.0.0 through 2.11.0 ## Check whether you're affected Run these where the product is installed or in the project that depends on it, then compare with the affected/fixed versions: ```sh node -v ``` ## Fix Upgrade to one of these fixed versions (or later on the same branch): - open 11.0.0 (requires Node.js 20) - OpenCode 1.18.33 - @modelcontextprotocol/inspector 2.12.0 After upgrading, re-run the checks above and redeploy/restart the affected services. ## Specific notes On Windows or WSL: run `npm ls open` in Node projects and upgrade any open 7.2.0 to 10.x to 11.0.0 or later (needs Node.js 20), especially if the app opens URLs from servers or users. Upgrade MCP Inspector to 2.12.0+ and OpenCode to 1.18.33+ (`opencode --version`). Run `opencode mcp list` and remove remote MCP servers you haven't vetted. macOS and Linux are not affected. ## Latest updates - Oct 29, 2026: VulnCheck assigns CVE-2026-119025 to the root cause in open 7.2.0 to before 11.0.0, listing OpenCode and MCP Inspector as affected; rated High (CVSS 4.0 7.7). - Oct 22, 2026: The Hacker News reports the flaw; upgrade to 1.18.33, run `opencode mcp list`, and remove unvetted remote MCP servers. - Oct 21, 2026: MCP Inspector publishes GHSA-q978-78c7-phqw (high): a remote MCP server can run code through the OAuth authorization URL on Windows and WSL; fixed in 2.12.0. - Oct 19, 2026: Pillar Security discloses the flaw publicly. Anomaly declined to request a CVE, saying user-configured MCP servers are outside its trust boundary. - Sep 28, 2026: OpenCode 1.18.33 ships the fix as a routine browser-launch refactor; release notes don't mention security. - Aug 29, 2026: Pillar Security privately reports the flaw to Anomaly. - Nov 15, 2025: open 11.0.0 ships with "Fix PowerShell argument escaping" (commit 274d704), which closes the injection in the package itself. ## Advisories - [CVE-2026-119025: open 7.2.0 before 11.0.0 OS Command Injection via PowerShell on Windows](https://www.cve.org/CVERecord?id=CVE-2026-119025) (CVE.org (VulnCheck CNA)) - [VulnCheck Advisory: open 7.2.0 before 11.0.0 OS Command Injection via PowerShell on Windows](https://www.vulncheck.com/advisories/open-7.2.0-before-11.0.0-os-command-injection-via-powershell-on-windows) (VulnCheck) - [GHSA-q978-78c7-phqw: A remote MCP server can execute arbitrary code on the user's machine through the OAuth authorization URL](https://github.com/modelcontextprotocol/inspector/security/advisories/GHSA-q978-78c7-phqw) (MCP Inspector (GitHub)) - [open v11.0.0 release notes](https://github.com/sindresorhus/open/releases/tag/v11.0.0) (sindresorhus/open (GitHub)) ## Write-ups & news - [OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL](https://thehackernews.com/2026/10/opencode-flaw-lets-malicious-mcp.html) - [Pillar Security disclosure post on X](https://x.com/Pillar_sec/status/2112166888985722937) ## Caveats CVE-2026-119025 (VulnCheck, Oct 29 2026) covers the root cause in open plus OpenCode and MCP Inspector. Separate from the OpenCode Console provider-key breach. Anomaly itself never published an advisory for OpenCode. --- Machine-readable: https://pwn.watch/i/opencode-mcp-oauth-rce-windows.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.