OpenCode MCP Sign-In Flaw Allowed Code Execution on Windows and WSL
Vulnerability Disclosure · 4 sources · Updated 1mo ago · First seen Oct 20, 2026

A command-injection vulnerability in OpenCode versions 1.0.137 through 1.18.32 allowed a malicious or compromised remote Model Context Protocol (MCP) server to execute code with a developer’s privileges on Windows and Windows Subsystem for Linux during OAuth authentication. An attacker-controlled authorization URL reached a browser-launch helper that embedded it in a PowerShell command without proper escaping, enabling execution without additional user interaction or consent. Pillar Security privately reported the flaw on August 29 and publicly disclosed it on October 19, proposing a critical severity score of 9.8; researchers reported no evidence of exploitation.
Anomaly fixed the vulnerability in OpenCode 1.18.33, released September 28, but did not request a CVE or publish a security advisory, leaving users reliant on direct version checks to identify affected installations. Organizations should upgrade vulnerable developer environments and review configured remote MCP servers. Researchers identified an update to the browser-launch dependency that correctly quotes URLs passed to PowerShell as the crucial remediation, warning that URL scheme validation alone is insufficient. The flaw is unrelated to the separately reported OpenCode Console breach that exposed stored AI provider keys.
Why it matters
OpenCode versions 1.0.137–1.18.32 expose Windows and Windows Subsystem for Linux (WSL) developer environments to arbitrary code execution when users authenticate to an attacker-controlled or compromised remote MCP server. Execution runs with the developer’s privileges, putting accessible source code, credentials, local files, and connected development systems at risk. Pillar Security reported no evidence of exploitation; exposure depends on the configured MCP server and initiation of authentication, not simply opening OpenCode.
- Affected population: Developers and organizations using remote MCP integrations with vulnerable OpenCode installations on Windows or WSL. Native Linux and macOS browser-launch paths are not affected by this flaw.
- Trust risk: A previously legitimate MCP server can become malicious after compromise or domain ownership changes.
- Visibility gap: No CVE or security advisory was issued for this vulnerability, so CVE-based scanning alone cannot establish exposure.
- Separate incident: The OpenCode Console breach involving stored AI provider keys is unrelated; this local vulnerability does not establish that those keys were exposed.


