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.
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vxw4-wv6m-9hhh OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 22 Jan 2026 00:15:00 +0900

Type Values Removed Values Added
First Time appeared Anoma
Anoma opencode
CPEs cpe:2.3:a:anoma:opencode:*:*:*:*:*:-:*:*
Vendors & Products Anoma
Anoma opencode

Wed, 14 Jan 2026 05:15:00 +0900

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 13 Jan 2026 18:30:00 +0900

Type Values Removed Values Added
First Time appeared Anomalyco
Anomalyco opencode
Vendors & Products Anomalyco
Anomalyco opencode

Tue, 13 Jan 2026 08:00:00 +0900

Type Values Removed Values Added
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.
Title OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution
Weaknesses CWE-306
CWE-749
CWE-942
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-01-13T19:07:37.056Z

Reserved: 2026-01-09T22:50:10.288Z

Link: CVE-2026-22812

cve-icon Vulnrichment

Updated: 2026-01-13T14:13:39.967Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-12T23:15:53.370

Modified: 2026-01-21T15:14:59.607

Link: CVE-2026-22812

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-01-13T18:27:22Z

Weaknesses