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

DevFeed: [OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL](<https://devfeed.tech/articles/opencode-flaw-lets-malicious-mcp-servers-execute-code-during-sign-in-on-windows-and-wsl-98287.md>)

Original publisher: [Read original article](<https://thehackernews.com/2026/10/opencode-flaw-lets-malicious-mcp.html>)

Author: The Hacker News

Published: 2026-10-22T10:44:05Z

Content type: news

Language: en

Sources: [Cyber Newsroom](<https://devfeed.tech/sources/cyber-newsroom.md>)

Topics: [code security](<https://devfeed.tech/topics/code-security.md>), [Windows Subsystem for Linux](<https://devfeed.tech/topics/wsl.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [MSP MCP](<https://devfeed.tech/topics/msp-mcp.md>)

Tags: [ai-coding-agent](<https://devfeed.tech/tags/ai-coding-agent.md>), [application-security](<https://devfeed.tech/tags/application-security.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [attack](<https://devfeed.tech/tags/attack.md>), [code](<https://devfeed.tech/tags/code.md>), [code-execution](<https://devfeed.tech/tags/code-execution.md>), [command-injection](<https://devfeed.tech/tags/command-injection.md>), [cve](<https://devfeed.tech/tags/cve.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-servers](<https://devfeed.tech/tags/mcp-servers.md>), [opencode](<https://devfeed.tech/tags/opencode.md>), [sign-in](<https://devfeed.tech/tags/sign-in.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>), [windows](<https://devfeed.tech/tags/windows.md>), [wsl](<https://devfeed.tech/tags/wsl.md>)

## AI overview

A malicious or hijacked remote MCP server could execute commands as the developer when they initiated sign-in in OpenCode on Windows or WSL. The server supplied an OAuth authorization URL that OpenCode passed unescaped into a PowerShell command used to open the browser. Merely configuring a server or opening a session did not trigger the flaw; the developer had to start MCP sign-in, and the attacker needed control of a server the developer had added. OpenCode fixed the issue in version 1.18.33; versions 1.0.137-1.18.32 are reported affected. macOS and Linux are unaffected. The flaw has no CVE or vendor advisory, so scanners may not identify vulnerable installs. Upgrade to 1.18.33 or later; if that is not possible, remove unvetted remote MCP servers and check configured servers with `opencode mcp list`. The researcher reported no known exploitation.

## Source excerpt

OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL A flaw in the OpenCode AI coding agent allowed a malicious or hijacked MCP server to run code on a developer's Windows or WSL machine when the developer signed in. OpenCode connects to MCP (Model Cont ... Read more Published Date: Oct 22, 2026 (1 day, 8 hours ago) Vulnerabilities has been mentioned in this article. CVE-2025-6514