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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product