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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
GitHub 9 repositories
-
rohmatariow/CVE-2026-22812-exploit ★ 34 · Jan 16, 2026
-
barrersoftware/opencode-secure ★ 6 · Jan 19, 2026
Security-hardened fork of OpenCode - Fixes CVE-2026-22812 (CVSS 8.8 RCE) that upstream refuses to patch
-
0xgh057r3c0n/CVE-2026-22812 ★ 2 · Jan 19, 2026
OpenCode < v1.0.216 - Unauthenticated RCE
-
Hex-Neo/CVE-2026-22812-OpenCode-RCE-exp ★ 1 · Apr 27, 2026
-
ashrafzaryouh/CVE-2026-22812 ★ 1 · Apr 6, 2026
CVE-2026-22812
-
HodgeLuke/ai-agent-security-research ★ 1 · Mar 29, 2026
Open security research on AI coding agent infrastructure. Agent-executable remediation manifests for CVE-2026-22812 and CVE-2026-22813.
-
CayberMods/CVE-2026-22812-POC ★ 1 · Jan 20, 2026
-
Udyz/CVE-2026-22812-Exp ★ 1 · Jan 16, 2026
CVE-2026-22812 - OpenCode Unauth RCE
-
mad12wader/CVE-2026-22812 ★ 0 · Jan 18, 2026
CVE-2026-22812 - OpenCode Unauthenticated RCE-Nuclei template for scan
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.
- OpenCode < 1.0.216 - Unauthenticated Remote Code Execution http/cves/2026/CVE-2026-22812.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | opencode-ai | < 1.0.216 | 1.0.216 | GHSA-vxw4-wv6m-9hhh |