CVE-2026-22812
HIGH 8.8CVSS 3.1OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution
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.
- Published
- 12 Jan 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-306CWE-749CWE-942
- Also known as
- GHSA-vxw4-wv6m-9hhh
- Sources
- NVDJSONOSV GHSA-vxw4-wv6m-9hhhJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | anoma | opencodecpe:2.3:a:anoma:opencode:*:*:*:*:*:-:*:* |
< 1.0.216 | 1.0.216 |
| OSV | npm | opencode-ai | < 1.0.216 | 1.0.216 |
References
- https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-22812 · ADVISORY
- https://github.com/anomalyco/opencode/commit/7d2d87fa2c44e32314015980bb4e59a9386e858c · WEB
- https://github.com/anomalyco/opencode · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 12 Jan 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Jan 2026)