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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 16.5%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-12T22:49:18.325Z
- Modified: 2026-06-17T10:20:28.353Z
- Also known as: GHSA-vxw4-wv6m-9hhh
- Weaknesses: CWE-306, CWE-749, CWE-942
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- anomalyco opencode: < 1.0.216
- opencode-ai (npm): before 1.0.216
- anoma opencode: before 1.0.216

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-22812](https://www.cve.org/CVERecord?id=CVE-2026-22812), CVE Terms of Use, modified 2026-01-13
- GitHub Advisory Database: [GHSA-vxw4-wv6m-9hhh](https://github.com/advisories/GHSA-vxw4-wv6m-9hhh), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-22812](https://nvd.nist.gov/vuln/detail/CVE-2026-22812), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22812 · Whole record: https://cve.day/CVE-2026-22812.json · Rebuilt by cve.day 2026-11-25T22:59:12.742Z
