OpenCode critical RCE vulnerability quietly fixed, no advisory issued
Start here
Pillar Security disclosed that the open-source AI coding agent OpenCode, with about 3 million weekly downloads, has a critical remote code execution vulnerability affecting versions 1.0.137 to 1.18.32 on Windows and WSL, with a recommended score of 9.8/10. When a developer runs opencode mcp auth to initiate login, if a remote MCP server they have added is controlled or hijacked by an attacker, the free-form authorization_endpoint field in the discovery document can be concatenated unescaped into a PowerShell command during MCP OAuth authentication, executing arbitrary code with the developer's privileges without additional user interaction. The vendor fixed it in version 1.18.33, which according to Forkast was released on September 28, but the patch was introduced under the guise of refactoring the browser launch code, with no security advisory and no CVE requested; researchers warn that conventional vulnerability scanners and dependency alerts cannot identify installations that still need upgrading. Pillar Security later also disclosed that the official MCP debugging tool MCP Inspector has a high-severity vulnerability of the same kind, with the root cause being that versions of the open package before 11.0.0 place the server-chosen authorization_endpoint unescaped into PowerShell.
Generated by AI from reports · Updated 24 days ago
Storyline
- · 5 reports· Attention45
OpenCode critical RCE vulnerability quietly fixed, no advisory issuedThis event
- · 1 reports· Attention42opencode OAuth flaw and Copilot CVE-2026-103572 disclosure
Latest developments
Progress timeline
- Pillar SecuritySelectedInspector: A remote code execution vulnerability in the official MCP debugging tool
Pillar Security disclosed that the official MCP debugging tool MCP Inspector has a high-severity remote code execution vulnerability. An attacker-controlled remote MCP server can execute arbitrary code on a developer's Windows or WSL machine during OAuth authentication, with no additional user interaction required, because automatically opening links is enabled by default in interactive terminals. The root cause is that versions of the open package before 11.0.0 place the server-chosen authorization_endpoint unescaped into a PowerShell command for execution. The maintainers accepted the report and fixed it in Inspector 2.12.0, released on 2026-10-21, and also published GHSA-q978-78c7-phqw (CVSS 3.1 8.8). It is recommended to upgrade to open 11.0.0+, Inspector 2.12.0+, and opencode 1.18.33+, and to add an override for the transitive dependency.
- ForkastSelectedOpenCode critical RCE vulnerability fixed under the guise of a "refactor," with no CVE ID, and scanning tools cannot flag affected installations
OpenCode's critical remote code execution vulnerability was fixed with version 1.18.33 released on September 28, but the patch was released under the guise of refactoring the browser launch code, with no security advisory and no CVE requested, so scanners and dependency bots cannot match installations that still need upgrading. According to a Pillar Security report, the vulnerability affects versions 1.0.137 through 1.18.32; a remote MCP server can, during the OAuth handshake, pass a URL into PowerShell on Windows and WSL via the self-chosen authorization_endpoint field, and the $(…) subexpression is treated as code execution, with no additional user interaction required; Pillar assessed CVSS v3.1 as 9.8 Critical. What actually closes the vulnerability is upgrading the open dependency to 11.0.4; scheme validation alone is not enough. According to Pillar's account, Anomaly responded that handling malicious MCP servers is generally outside its threat model.
- RedditReddit r/cybersecurity· DiscussionOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL(opens the original post in a new tab)
- The Hacker NewsSelectedOpenCode vulnerability lets a malicious MCP server execute code at login on Windows and WSL
OpenCode AI coding agent has a vulnerability: a malicious or hijacked MCP server can execute code with the developer's privileges on their Windows or WSL machine when the developer logs in. Discovered by Pillar Security, rated critical, with a suggested score of 9.8/10. During login, the OAuth authorization endpoint address provided by the MCP server is spliced unescaped into a PowerShell command. It is triggered only when the developer runs opencode mcp auth to initiate login, and the attacker needs to control a remote MCP server the developer has already added. Anomaly fixed it on September 28 in version 1.18.33; affected versions are 1.0.137 through 1.18.32. The fix was released under the guise of refactoring the browser launch code, with no CVE requested and no security advisory published, so scanners will not flag builds that are still at risk. Anomaly says user-configured MCP servers are outside its trust boundary. macOS and Linux are not affected.
- Infosecurity MagazineSelectedResearchers warn that OpenCode quietly fixed a critical RCE vulnerability, leaving users at risk
Pillar Security disclosed a critical remote code execution (RCE) vulnerability in the open-source AI coding tool OpenCode, affecting versions 1.0.137 to 1.18.32. The vendor fixed it in 1.18.33 but did not publish a CVE or security advisory, and researchers warn that conventional vulnerability scanners and dependency alerts cannot identify affected installations. The vulnerability affects Windows and WSL; an attacker-controlled MCP server can execute arbitrary code on the developer's machine during MCP OAuth authentication without additional user interaction. Pillar Security reported it privately through a GitHub Security Advisory in late August 2026; OpenCode's parent company Anomaly confirmed receiving the report but said a malicious MCP server is outside its threat model, and the fix was completed on September 28.
- Date not givenPillar SecuritySelectedOpen and Shut: opencode remote code execution vulnerability via MCP OAuth
Pillar Security disclosed that the open-source AI coding agent opencode, with about 3 million weekly downloads, has a remote code execution vulnerability affecting versions 1.0.137 to 1.18.32 on Windows and WSL. During the OAuth authentication handshake, an attacker-controlled remote MCP server sends the free-form authorization_endpoint field in the discovery document directly to the shell, which passes it via the open package to PowerShell for execution, requiring no additional user interaction and not relying on prompt injection; the payload is an ordinary https URL. The vendor Anomaly fixed it in 1.18.33, released on 2026-09-28, but released it as a refactor, issued no security advisory and did not request a CVE, so vulnerability scanners and dependency alerts will not flag affected installations.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@cubillas888 · cubillasSource: Pillar Security https://www.pillar.security/blog/open-and-shut-remote-code-execution-in-opencode-via-mcp-oauth…(opens the original post in a new tab)
- X@cubillas888 · cubillasMCP server risk: Pillar Security says opencode on Windows and WSL could run an attacker's code during remote MCP OAuth…(opens the original post in a new tab)
1 comments·Oct 28 00:35Collect
- X@JoshuaClarke · Joshua ClarkeTreat connecting to a remote MCP server like running untrusted code. Pillar Security reports that opencode on Windows a…(opens the original post in a new tab)
3 likes · 2 comments·Oct 27 17:44Collect
- X@BTHaberler · BT HaberlerOpenCode'da Kötü Amaçlı Uzak MCP Sunucusu Windows ve WSL'de Geliştiricinin Yetkileriyle PowerShell Komutu Çalıştırabili…(opens the original post in a new tab)
- X@willvelida · Will Velida 🇺🇦Critical RCE flaw in OpenCode that affects users on Windows and WSL that allows attacker-controlled remote MCP servers…(opens the original post in a new tab)
3 likes · 1 comments·Oct 27 17:44Collect
- X@david_x_ai · David Gutierrez | EngConnecting an MCP server is installing software. Treat it that way. On Oct 19, Pillar Security disclosed a critical bu…(opens the original post in a new tab)
17 likes · 32 comments·Oct 29 00:36Collect
- X@siDandott · Alvif Sandana MahardikaOpenCode MCP sign-in flaw: a malicious server OAuth URL was passed unescaped to PowerShell on Windows/WSL, running arbi…(opens the original post in a new tab)
1 likes · 1 comments·Oct 28 00:35Collect
- X@ralbuque · Ricardo AlbuquerqueOpenCode (agente de código com IA) tinha RCE crítico no Windows/WSL: servidor MCP remoto malicioso executa código duran…(opens the original post in a new tab)
31 likes · 1 comments·Oct 27 17:44Collect
- X@hazemomier · Hazem OmierThe MCP server you sign in to picks the auth URL your client opens. opencode up to 1.18.32 passed it to open@10, which…(opens the original post in a new tab)
- X@JNitterauer · Jim NitterauerOpenCode quietly patched a critical RCE in its MCP OAuth flow, with no CVE or advisory — Pillar Security says OpenCode…(opens the original post in a new tab)
1 likes · 1 comments·Oct 24 03:35Collect
- X@yeletech · YeleTech SecurityConnecting an AI agent to an outside MCP server means trusting whoever runs it. Pillar Security found an OpenCode flaw…(opens the original post in a new tab)
1 likes·Oct 27 17:44Collect
- X@stretchcloud · Prasenjit SarkarOpenCode has over 218,000 GitHub stars and runs as an open agentic coding tool for thousands of developers. Pillar Secu…(opens the original post in a new tab)
3 likes · 4 comments·Oct 26 15:33Collect