Skip to content
EventPast event

OpenCode critical RCE vulnerability quietly fixed, no advisory issued

5 reports4 reporting sourcesLatest report

Start here

AI overview

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

Developments on the same subject and issue, from earliest to latest

2 events
  1. · 5 reports· Attention45

    OpenCode critical RCE vulnerability quietly fixed, no advisory issuedThis event

  2. · 1 reports· Attention42
    opencode OAuth flaw and Copilot CVE-2026-103572 disclosure

Latest developments

2 developments
  1. · 1 report
    MCP Inspector remote code execution vulnerability disclosed
    Pillar Security: Inspector: A remote code execution vulnerability in the official MCP debugging tool
  2. · 4 reports
    OpenCode silently fixes critical RCE vulnerability without an advisory
    Infosecurity Magazine: Researchers warn that OpenCode quietly fixed a critical RCE vulnerability, leaving users at risk

Progress timeline

Nov 5
  1. Pillar SecuritySelected
    Inspector: 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.

Oct 23
  1. ForkastSelected
    OpenCode 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.

Oct 22
  1. The Hacker NewsSelected
    OpenCode 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.

Oct 20
  1. Infosecurity MagazineSelected
    Researchers 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 provided
  1. Date not given
    Pillar SecuritySelected
    Open 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

Total 41 items