{"id":"CVE-2026-22812","state":"PUBLISHED","title":"OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution","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.","publishedAt":"2026-01-12T22:49:18.325Z","updatedAt":"2026-01-13T19:07:37.056Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["anomalyco opencode"],"affected":[{"vendor":"anomalyco","product":"opencode","versions":[{"version":"< 1.0.216","status":"affected"}]}],"references":["https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh"],"weaknesses":["CWE-306","CWE-749","CWE-942"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/22xxx/CVE-2026-22812.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-22812","state":"PUBLISHED","datePublished":"2026-01-12T22:49:18.325Z","dateUpdated":"2026-01-13T19:07:37.056Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-09T22:50:10.288Z"},"containers":{"cna":{"title":"OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"anomalyco","product":"opencode","versions":[{"version":"< 1.0.216","status":"affected"}]}],"references":[{"url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh","name":"https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-306","lang":"en","description":"CWE-306: Missing Authentication for Critical Function","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-749","lang":"en","description":"CWE-749: Exposed Dangerous Method or Function","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-942","lang":"en","description":"CWE-942: Permissive Cross-domain Policy with Untrusted Domains","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-12T22:49:18.325Z"},"source":{"advisory":"GHSA-vxw4-wv6m-9hhh","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-vxw4-wv6m-9hhh","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-13T14:13:37.474420Z","id":"CVE-2026-22812","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-13T19:07:37.056Z"}}]}}}