CVE-2026-22812
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.
Does this matter?
EPSS puts the probability of exploitation in the next 30 days at 16.8%, higher than 97% of all known CVEs. Patch or mitigate before the next change window.
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.
- CVSS 3.1
- 8.8 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS
- 16.77% probability · 97th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-306, CWE-749, CWE-942
- Affected
- anoma/opencode
- Source
- security-advisories@github.com
References
- https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhhExploit, Vendor Advisory
- https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhhExploit, Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.