Skip to content
OpenAdvisories
High · 8.8 Scanner template Public exploit CVE-2026-22812 EUVD-2026-2092GHSA-vxw4-wv6m-9hhh

OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution

Published Jan 12, 2026 · Updated Jan 13, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
anomalyco opencode < 1.0.216 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 9 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm opencode-ai < 1.0.216 1.0.216 GHSA-vxw4-wv6m-9hhh

References