CVE-2026-22812: OpenCode is an open source AI coding agent
CVE-2026-22812 is a high-severity flaw (CVSS 8.8) affecting opencode. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- EPSS top 3%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: rohmatariow/CVE-2026-22812-exploit (34 stars)
- GitHub PoC: barrersoftware/opencode-secure (6 stars)
- GitHub PoC: 0xgh057r3c0n/CVE-2026-22812 (2 stars)
- Write-up: github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh
- Nuclei scan template: OpenCode < 1.0.216 - Unauthenticated Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-22812?
opencode: upgrade to 1.0.216. Exact commands for each OS are on this page.
Is CVE-2026-22812 being exploited?
CVE-2026-22812 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-22812 affect?
CVE-2026-22812 affects opencode. Severity is high (CVSS 8.8). 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'
How urgent is CVE-2026-22812?
Priority 60/100. High severity; EPSS top 3%: very likely to be exploited; Public exploit reference
Related CVEs
- CVE-2026-22813 MEDIUM 6.1 UPGRADE OpenCode is an open source AI coding agent