{"cve":"CVE-2026-22812","nvd":{"published":"2026-01-12T23:15:53.370","modified":"2026-06-17T10:20:28.353","status":"Analyzed","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-306","CWE-749","CWE-942"],"references":["https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh","https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh"],"products":["anoma:opencode"],"source":"nvd","synced_at":"2026-10-19T22:19:41.481987139+00:00"},"epss":{"cve":"CVE-2026-22812","score":0.16538,"percentile":0.97006,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-vxw4-wv6m-9hhh","url":"https://osv.dev/vulnerability/GHSA-vxw4-wv6m-9hhh","summary":"OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution","modified":"2026-02-03T03:00:05.488310Z","packages":[{"ecosystem":"npm","name":"opencode-ai","purl":"pkg:npm/opencode-ai","ranges":["<1.0.216"],"fixed":["1.0.216"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}