> status: mostly fine. patch anyway.practical AI security · est. 2026

Brief · Builders

Fixed in September. Your scanner still doesn't know.

By alkizz ·

In a report dated Oct 19, Pillar Security showed that opencode, on Windows and WSL, could run an attacker's code just because you connected to a remote MCP server. No prompt injection. No click.

Update, Nov 6, 2026: The official MCP debugging tool, @modelcontextprotocol/inspector, shipped 2.14.0 on Nov 4 with three medium fixes for anyone who uses it to vet remote or untrusted MCP servers. An MCP App could navigate its sandboxed frame away from the host's policy while the proxy kept relaying (GHSA-h9j8-vj8g-v3gg). Importing a server.json could splice unvalidated runtime args into npx/uvx/docker run while the UI showed only a benign package name, and elicitation URLs and the HTML-preview CSP had holes (GHSA-rwv7-mh2c-ff2p). After a tool call, a server-supplied outputSchema.pattern could hang the UI (ReDoS; GHSA-2fw8-7jmw-r937, also fixed on the v1 line in 1.0.4). All three hit <=2.13.0; the 2.14.0 release notes name them as fixed. Upgrade with npx @modelcontextprotocol/inspector@latest.

On Nov 5, Pillar published the punchline: the same Windows/WSL PowerShell $(...) chain via a server-chosen OAuth authorization_endpoint and open@10 that hit opencode was in Inspector too. That one is GHSA-q978-78c7-phqw (CVSS 8.8), fixed in Inspector 2.12.0 (Oct 21). CVE-2026-119025 now lists open, Inspector, and opencode together, so scanners that keyed on "no CVE" for the opencode bug above can finally flag the set. Pillar puts Inspector at about 768k weekly downloads and notes AWS, Cloudflare, and Azure docs point people at it to test remote MCP servers.

Here's how it worked. During the automatic OAuth handshake, opencode took the MCP server's authorization_endpoint and handed it to the open package. On Windows, open@10.x routes that through PowerShell without escaping. So a server that advertises https://evil.test/$(...) gets its $(...) executed on your machine. macOS and Linux aren't affected.

Affected: opencode-ai 1.0.137 through 1.18.32, on Windows or WSL, with remote MCP servers configured. Pillar proposes a CVSS of 9.8, and puts opencode at about 3 million weekly npm downloads and 211K GitHub stars. CVE-2026-119025 covers open, Inspector and opencode. Per Pillar, the maintainers consider malicious MCP servers outside their threat model, and the fix shipped as a refactor in 1.18.33, published to npm on Sep 28. No in-the-wild exploitation has been reported.

CVE-based scanners and dependency alerts key on CVEs. Until 119025 landed they wouldn't flag the opencode bug on its own. Your own version inventory still can.

(Not to be confused with the separate OpenCode Console key breach, which we covered here.)

MCP tools can run commands on your machine

Two more agent servers shipped with "everyone, everything" defaults:

No exploitation has been reported for either. The pattern: the connections between agents (OAuth handshakes, enrollment endpoints, session APIs) are now where the bugs live.

"Out of our threat model" is a fine sentence for a design doc and a terrible one for a release note. If the fix matters enough to ship, it matters enough to tell people.

What to do:

Sources

← All briefs