---
title: "Open and Shut: Remote Code Execution in opencode via MCP OAuth"
url: "https://xlrocket.men/open-and-shut-remote-code-execution-in-opencode-via-mcp-oauth"
markdown_url: "https://xlrocket.men/open-and-shut-remote-code-execution-in-opencode-via-mcp-oauth.md"
format: "link"
published: "2026-10-22T12:27:40.000Z"
link_url: "https://www.pillar.security/blog/open-and-shut-remote-code-execution-in-opencode-via-mcp-oauth"
site: "火箭君 MEN"
---

# [Open and Shut: Remote Code Execution in opencode via MCP OAuth](https://www.pillar.security/blog/open-and-shut-remote-code-execution-in-opencode-via-mcp-oauth)

译：OpenCode：恶意 MCP 在 OAuth 登录时即可远程执行代码

- Windows/WSL 上 1.0.137–1.18.32 受影响，9/28 的 1.18.33 静默修复，无 CVE、无公告（[THN](https://thehackernews.com/2026/10/opencode-flaw-lets-malicious-mcp.html)）
- macOS/Linux 不受影响；扫描器不会报
- 今晚：升到 1.18.33+，`opencode mcp list` 清掉没审过的远程 MCP——MCP 服务器当会变坏的第三方
