npm open PowerShell injection (CVE-2026-119025): malicious MCP servers can run code on Windows/WSL via OpenCode and MCP Inspector sign-in
npm open package (7.2.0 to 10.x) and apps using it on Windows/WSL, including OpenCode and MCP Inspector
Sponsored
Brought to you byTinkerer Club
The private club for people who own their servers, run their own AI, and pay $0/month for software.
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.
Why this severity: 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
- Started
- Oct 19, 2026
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
Timeline7
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).
The Hacker News reports the flaw; upgrade to 1.18.33, run `opencode mcp list`, and remove unvetted remote MCP servers.
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.
Pillar Security discloses the flaw publicly. Anomaly declined to request a CVE, saying user-configured MCP servers are outside its trust boundary.
OpenCode 1.18.33 ships the fix as a routine browser-launch refactor; release notes don't mention security.
Pillar Security privately reports the flaw to Anomaly.
open 11.0.0 ships with "Fix PowerShell argument escaping" (commit 274d704), which closes the injection in the package itself.
Advisories4
- CVE-2026-119025: open 7.2.0 before 11.0.0 OS Command Injection via PowerShell on WindowsCVE.org (VulnCheck CNA) · Oct 29, 2026
- VulnCheck Advisory: open 7.2.0 before 11.0.0 OS Command Injection via PowerShell on WindowsVulnCheck · Oct 29, 2026
- GHSA-q978-78c7-phqw: A remote MCP server can execute arbitrary code on the user's machine through the OAuth authorization URLMCP Inspector (GitHub) · Oct 21, 2026
- open v11.0.0 release notessindresorhus/open (GitHub) · Nov 15, 2025
News & write-ups2
Posts1

🚨 OpenCode flaw lets malicious MCP servers execute code on Windows and WSL when developers initiate sign-in. Fixed in v1.18.33, but there's no CVE or security advisory. Vulnerability scanners won't flag affected versions. What developers need to know: t.co/l6N4LCjhWt
Notes & 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.
Get an email when a new major security incident drops. No spam, unsubscribe any time.