OpenCode AI coding agent: unauthenticated local RCE and XSS in web UI
Two vulnerabilities were disclosed in the open source OpenCode AI coding agent: an unauthenticated local HTTP server with permissive CORS allowing any local process or website to run arbitrary shell commands (CVE-2026-22812), and an unsanitized markdown renderer allowing JavaScript execution on the localhost web interface via crafted LLM responses (CVE-2026-22813). Fixes shipped in versions 1.0.216 and 1.1.10 respectively.
Disclosed 12 January 2026 · Record updated 13 September 2026
Impact
Any local process or malicious website could execute arbitrary shell commands with the user's privileges; controlling an LLM response could execute JavaScript on the http://localhost:4096 origin.
Our coverage
No articles linked to this incident yet.
Sources
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-22812
- nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-22813
