Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityai-platform-securityopen-source-dependency-vulnerabilityidentity-authentication-vulnerability

OpenCode MCP Sign-In Flaw Allowed Code Execution on Windows and WSL

Vulnerability Disclosure · 4 sources · Updated 1mo ago · First seen Oct 20, 2026

OpenCode MCP Sign-In Flaw Allowed Code Execution on Windows and WSL

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.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · 2023 – Oct 19, 2026
  1. Reported Oct 22, 20261mo ago

    Anomaly declines request to reconsider obtaining a CVE

    According to Pillar Security, Anomaly declined a subsequent request to reconsider obtaining a CVE, stating that malicious MCP servers fell outside its threat model.

    OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL
  2. Oct 19, 20261mo ago

    Pillar Security publicly discloses OpenCode authentication flaw

    Pillar Security disclosed the vulnerability affecting OpenCode versions 1.0.137 through 1.18.32 and proposed a critical severity score of 9.8. Researchers explained that unescaped OAuth authorization URLs could inject PowerShell commands on Windows and WSL, and reported no evidence of exploitation.

    OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL
  3. Sep 28, 20262mo ago

    Anomaly releases OpenCode 1.18.33 with a fix but no security advisory

    Anomaly released OpenCode 1.18.33, updating the vulnerable browser-launch dependency and adding HTTP/HTTPS scheme validation. The change was presented as a browser-launch refactor without a CVE identifier or public security advisory.

    OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL
  4. Sep 25, 20262mo ago

    OpenCode merges browser-launch and OAuth URL hardening

    OpenCode merged commit 29f07e0 into its dev branch, centralizing browser launching, restricting browser and MCP OAuth authorization URLs to HTTP/HTTPS, and upgrading the open dependency to version 11. The merged change had 11 checks passing.

    refactor(core): share a browser opener across opencode and tui by rekram1-node · Pull Request #51414 · anomalyco/opencode
  5. Aug 29, 20263mo ago

    Pillar Security privately reports OpenCode command-injection vulnerability

    Pillar Security privately reported the vulnerability to Anomaly through GitHub Security Advisory, providing reproduction material. An attacker-controlled remote MCP server could execute commands with a developer's privileges during OAuth authentication on Windows or WSL.

    OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL
  6. Dec 7, 20251y ago

    OpenCode introduces vulnerable OAuth browser-launch call

    OpenCode introduced await open(authorizationUrl) in commit 509e43d6, creating the vulnerable OAuth browser-launch path. The upstream open package's PowerShell escaping fix was already available, but affected OpenCode releases used the older open 10.1.2 dependency.

    Open and Shut: Remote Code Execution in opencode via MCP OAuth
  7. Jul 2025

    Similar OAuth command-injection vulnerability identified in mcp-remote

    The mcp-remote proxy had an almost identical authorization-endpoint command-injection vulnerability, assigned CVE-2025-6514.

    OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL
  8. 2023

    Windows command-injection risk reported in OpenCode's browser-launch dependency

    A Windows command-injection risk was reported in the open browser-launch package, an older release of which OpenCode later used. The package vulnerability was subsequently fixed in version 11.

    OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.