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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.0.216 (CNA); fix release not confirmed
- Status: published
- Published: 2026-01-12 · Modified: 2026-01-13
- Aliases: GHSA-vxw4-wv6m-9hhh
- Record: https://cvemate.com/vulnerability/CVE-2026-22812 · JSON: https://cvemate.com/vulnerability/CVE-2026-22812/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 16.538%, percentile 97.095%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- anoma opencode: \< 1.0.216
- anomalyco opencode: \< 1.0.216
- Npm opencode-ai (Npm): \< 1.0.216

## References

- <https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22812>
- <https://github.com/anomalyco/opencode/commit/7d2d87fa2c44e32314015980bb4e59a9386e858c>
- <https://github.com/anomalyco/opencode>

---

Data as of 2026-12-05T09:54:41.659Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
