What’s Vulnerable › Vulnerabilities

CVE-2026-22812: OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution

Description

OpenCode is an open source AI coding agent. Prior to 1.0.216, OpenCode automatically starts an unauthenticated HTTP server that allows any local process (or any website via permissive CORS) to execute arbitrary shell commands with the user's privileges. This vulnerability is fixed in 1.0.216.

Affected products

How to fix

Upgrade to a fixed version: anomalyco opencode 1.0.216. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-22812 or the next vulnerability affects your stack