XSS in Anoma Opencode
CVE-2026-22813
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.009 (58.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 59th percentile — 58.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.010 · newest: 0.009 · change: -0.000
Affected products
- Anoma Opencode
- Anomalyco Opencode — versions < 1.1.10
Weakness classification (CWE)
References
- github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp (Exploit, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-22813?
- CVE-2026-22813 is a medium-severity vulnerability in Anoma Opencode, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2026-01-12.
- How severe is CVE-2026-22813?
- Medium severity. CVSS v3 base score is 6.1 out of 10.