Skip to content

CVE-2026-22813 Malicious website can execute commands on the local system through XSS in the OpenCode web UI

CriticalCVSS 9.4 EPSS 0.91%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

Description

OpenCode is an open source AI coding agent. The markdown renderer used for LLM responses will insert arbitrary HTML into the DOM. There is no sanitization with DOMPurify or even a CSP on the web interface to prevent JavaScript execution via HTML injection. This means controlling the LLM response for a chat session gets JavaScript execution on the http://localhost:4096 origin. This vulnerability is fixed in 1.1.10.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
anoma opencode < 1.1.10 1.1.10 Fixed
npm opencode-ai(npm) < 1.1.10 1.1.10 Fixed
anomalyco opencode = < 1.1.10 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
anomalyco opencode = < 1.1.10 No fix listed
npm opencode-ai(npm) < 1.1.10 1.1.10
anoma opencode < 1.1.10 1.1.10

References