CVE-2026-22812 OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution
HighCVSS 8.8
EPSS 16.5%
Scanner template
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| anoma opencode | < 1.0.216 | 1.0.216 | Fixed |
| npm opencode-ai(npm) | < 1.0.216 | 1.0.216 | Fixed |
| anomalyco opencode | = < 1.0.216 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| anomalyco opencode | = < 1.0.216 | No fix listed |
| npm opencode-ai(npm) | < 1.0.216 | 1.0.216 |
| anoma opencode | < 1.0.216 | 1.0.216 |
References
- https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com
- github.com product