OpenCode: a malicious MCP server could run code on Windows during OAuth sign-in
Pillar Security (disclosed 19 Oct 2026) showed a remote MCP server could inject PowerShell commands via the OAuth authorization URL in OpenCode on Windows/WSL. Fixed in 1.18.33.
# Remote-MCP OAuth endpoint triage (illustrative, defensive, redacted) # Pattern: the server-supplied authorization URL is passed into a shell string on Windows. # [authorization_endpoint] -> https://[server]/authorize?[hidden instruction] [REDACTED] # [shell-interpreted part] -> crafted URL fragment treated as a command [REDACTED] # Defense: upgrade OpenCode to 1.18.33+, remove remote MCP servers you cannot vouch for, # and open URLs with argument-based process execution, never string interpolation.