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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 1.1.10 (CNA); fix release not confirmed
- Status: published
- Published: 2026-01-12 · Modified: 2026-01-13
- Aliases: GHSA-c83v-7274-4vgp
- Record: https://cvemate.com/vulnerability/CVE-2026-22813 · JSON: https://cvemate.com/vulnerability/CVE-2026-22813/json

## Description

```text
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.
```

## Signals

- CVSS: 9.4 critical (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- EPSS: 0.905%, percentile 61.043%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- anoma opencode: \< 1.1.10
- anomalyco opencode: \< 1.1.10
- Npm opencode-ai (Npm): \< 1.1.10

## References

- <https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22813>
- <https://github.com/anomalyco/opencode>

---

Data as of 2026-12-05T09:57:08.377Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
