AI hack · Security research · 19 Oct 2026Fixed in 1.18.33No CVE or advisoryNo exploitation reported
Pillar Security found a flaw in OpenCode's MCP sign-in that could let a malicious server run code on Windows and WSL
Pillar Security found that a malicious or hijacked MCP server could 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated on Windows and WSL machines using OpenCode, an open-source AI coding agent, during sign-in. The fix shipped in OpenCode 1.18.33 on 28 September 2026, with 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated. No exploitation has been reported.
By Chris Hoskins, Founder, Boogey ·
Tap underlined words to see who reported them.
1.0.137 to 1.18.32
SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated
9.8 out of 10
SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated
2 steps
2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated
None
2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated
How a sign-in address became a command
Step 1
A server is added
A developer adds a 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated, a tool server the agent can use, to OpenCode.
Step 2
Sign-in starts
The developer 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated, the OAuth step where the server supplies a web address to log in at.
Step 3
Handed to an old helper
OpenCode passed that address to an 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated, a widely used package called open.
Step 4
Into PowerShell
On Windows, the library put the address into a PowerShell command 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated. A crafted address could run commands.
Step 5
With the developer's access
Those commands would run with SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, The Hacker News says.
On macOS and Linux, OpenCode opens the browser without passing the address SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, so they are not affected, The Hacker News says.
What the attack needed
The Hacker News sets out SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated.
A server gone bad
Control of a remote MCP server the developer added. It could be one SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, or a domain that changes hands.
An old release
The open package's Windows command-injection risk was reported in 2023 and fixed in version 11. OpenCode SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated.
A developer signing in
The browser step runs SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated. Configuring the server or opening a session does not trigger it.
A check for http or https would not have stopped it, because the attack uses SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, The Hacker News says.
From private report to disclosure
29 Aug 2026
Pillar SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated.
28 Sep
OpenCode 1.18.33 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated.
19 Oct
Pillar discloses the flaw and SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, with a proposed score of 9.8 out of 10.
The fix shipped as a routine change, described as a SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated. Neither the pull request nor the release notes mention a security flaw, The Hacker News says.
OpenCode's maintainer, Anomaly, requested no CVE, the public ID scanners look for, and published no advisory. So 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated the affected builds, The Hacker News says.
Whose risk is a bad server?
Anomaly's security policy says MCP servers a user configures are SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, The Hacker News reports. According to Pillar, Anomaly answered that a malicious MCP server falls SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated. Pillar later asked Anomaly to reconsider and SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated. The user picks the server. The client's own code decides what to do with the address that server sends back. The Hacker News notes the flaw is SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated of OpenCode's hosted Console that may have exposed some users' stored API keys.
mcp-remote first, then OpenCode
Jul 2025
The mcp-remote proxy had an SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, assigned CVE-2025-6514, The Hacker News says.
19 Oct 2026
Pillar discloses OpenCode's flaw, which put an MCP server's sign-in address into a PowerShell command 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated.
The same kind of bug turned up in two MCP tools, more than a year apart. Any app that opens a sign-in address an MCP server sends can repeat it, unless it treats that address as a stranger's input and keeps it away from a shell.
The Boogey fix
Could an MCP server's sign-in run code through your agent?
You’re exposed if
- Your agent or app is an MCP client. Users add remote MCP servers to it, and it handles their sign-in.
- It opens the sign-in address a server sends on Windows or WSL, through a shell or a launch helper that uses one.
- It bundles OpenCode 1.0.137 to 1.18.32, or a release of the open package older than version 11.
- It opens a server's sign-in address without first asking the user.
Fix it
01No shell between address and browser
Open a sign-in address with an operating-system function that takes it as a single argument, never as part of a command line. OpenCode opens the browser on macOS and Linux without a shell, and those systems SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated.
02A version floor in your build
If your product bundles OpenCode, ship 1.18.33 or later. Move open to version 11 or later, and pin it. Set a version floor your build fails below, since 2 sourcesThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndatedInfosecurity MagazineResearchers Warn OpenCode Quietly Patched Critical RCE FlawUndated the affected builds.
03Only servers on your list
Let an admin set which MCP servers your agent may connect to, and refuse any other. A server nobody listed never gets to hand your agent a sign-in address.
04Ask again when the address changes
Record the sign-in address the user first approved for each server. If the server later sends a different one, show it in full and ask again. A server can be SourceThe Hacker NewsOpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSLUndated, or its domain can change hands.
05Sign-in waits for the user
Never open a sign-in address the moment a server asks for it. Show the user which server wants it, and wait for a yes. If your agent can add servers or start sign-in itself, tell it in its instructions to leave both to the user.
On your platform
Settings you already have that help against this hack. Last checked 1 Dec 2026.
No setting on Claude Code helps with this one. Our test does.
How we test it
- 1Under a signed scope, you share the lockfile or SBOM for your agent or app, read-only. You install nothing, and we scan nothing of yours.
- 2From it, we flag OpenCode 1.0.137 to 1.18.32, the releases with the sign-in flaw.
BT-08 · Vulnerable MCP server, agent framework or AI library code
It fails if
- Your lockfile or SBOM has OpenCode 1.0.137 to 1.18.32
Does your agent or app sign in to MCP servers your users add? We'll run this test on yours.