Brief · Builders
Fixed in September. Your scanner still doesn't know.
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:
- Google's Agent Mesh (SAM), CVE-2026-103091. Anyone with a valid token from the configured identity provider can self-register. The default policy then grants wildcard access to every MCP tool on every node. Per the GHSA, a one-hour token buys a 90-day mesh credential. Fixed in v0.1.0-alpha.9. The README says it's "not an officially supported Google product."
- Cognition, CVE-2026-109437. Per VulnCheck, there's no API auth, and the default sandbox is a local shell. Fixed in 0.13.0.
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:
- Check versions by hand on every Windows and WSL machine that runs opencode. If you installed it through npm,
npm ls -g opencode-aishows the version. Anything from 1.0.137 to 1.18.32 needsnpm install -g opencode-ai@latestto get 1.18.33 or later. - Check your opencode configs for remote MCP servers, and remove any you haven't vetted. Vet them like a stranger's shell script.
- If you find an affected version with remote servers configured:
- Preserve the endpoint's logs before you upgrade.
- If you have PowerShell script-block logging, check Event 4104 around the time MCP sign-in ran. Every
open@10launch is encoded, so look at the decoded command for$(inside theStarttarget. On WSL,powershell.exeruns on the Windows host, so the parent chain may not show opencode. - Rotate the credentials on that machine that opencode could reach.
- Builders: launch URLs with argv-style calls, not a shell, and bind OAuth discovery to the server's configured origin. Per Pillar, a scheme allowlist alone doesn't stop this payload.
-
SAM and Cognition users: upgrade. On SAM, restrict who can enroll, and reissue mesh credentials.
-
Upgrade MCP Inspector to 2.14.0 or later.
- Why: 2.14.0 closes the three Nov 4 mediums (frame escape, server.json arg smuggling, schema ReDoS). On Windows/WSL, 2.12.0 already closed the OAuth/
openRCE (GHSA-q978-78c7-phqw). - How: run
npx @modelcontextprotocol/inspector@latest. If you still pin the v1 line, use 1.0.4 (@v1-latest) for the ReDoS fix only. On Windows/WSL, also confirm any directopenuse is 11.0.0 or later.
- Why: 2.14.0 closes the three Nov 4 mediums (frame escape, server.json arg smuggling, schema ReDoS). On Windows/WSL, 2.12.0 already closed the OAuth/
-
Treat remote MCP OAuth endpoints as untrusted input, and read a server.json before Import & Save.
- Why: both the Inspector OAuth RCE and the server.json import bugs started from values the remote server or the imported file chose, while the UI collapsed or auto-opened them.
- How: don't connect Inspector to a remote MCP server you haven't vetted, and before saving an imported
server.json, check the resolved command and args the UI now shows (2.14.0 surfaces them). Prefer the Builders checklist for strangers' shell scripts.
Want the next one?
One email, weekly-ish. The week's briefs, how worried to be, and what to do about it. No doom.
Subscribe on Beehiiv ↗Free. Opens Beehiiv in a new tab. Unsubscribe whenever, I won't be offended.Sources
- Pillar Security: Open and shut, remote code execution in opencode via MCP OAuth
- Pillar Security on X
- Google SAM advisory GHSA-cgmg-9xf6-rrgw
- CVE-2026-103091 record
- VulnCheck: Cognition unauthenticated RCE via local shell backend
- MCP Inspector 2.14.0 release notes
- GHSA-h9j8-vj8g-v3gg (MCP App frame escape)
- GHSA-rwv7-mh2c-ff2p (server.json import / elicitation / preview CSP)
- GHSA-2fw8-7jmw-r937 (schema pattern ReDoS)
- Pillar Security: Inspecting the Inspector (Nov 5, 2026)
- GHSA-q978-78c7-phqw (Inspector OAuth RCE, fixed 2.12.0)
- CVE-2026-119025 record (open / Inspector / opencode)