{"id":"CVE-2026-22813","published":"2026-01-12T22:52:35Z","modified":"2026-01-13T19:07:23Z","title":"Malicious website can execute commands on the local system through XSS in the OpenCode web UI","vendor":"anomalyco","product":"opencode","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00905,"percentile":0.60675,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":12.13},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"anomalyco","affectedVersions":[{"vendor":"anomalyco","product":"opencode","versions":["< 1.1.10"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-01-13T14:13:29.936632Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"opencode-ai","vulnerableRanges":["<1.1.10"],"patched":["1.1.10"],"from":["GHSA-c83v-7274-4vgp"],"provenance":"source"}],"summary":{"text":"The OpenCode web UI, an open source AI coding agent published by anomalyco, has a cross-site scripting flaw: its markdown renderer for LLM responses inserts arbitrary HTML into the DOM without sanitization and without a Content Security Policy. An attacker who can control the LLM response in a chat session can run JavaScript on the localhost:4096 origin, which the attack vector indicates requires user interaction, such as the victim visiting a malicious website.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:35Z"},"euvd":{"id":"EUVD-2026-2091","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-22812","published":"2026-01-12","fixed":"1.0.216","kev":false,"link":{"from":"CVE-2026-22812","to":"CVE-2026-22813","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:opencode-ai","fromFixed":"1.0.216","toFixed":"1.1.10","daysApart":0},{"kind":"similar","provenance":"machine","score":0.34,"basis":"same product + description similarity"}]}},{"cve":"CVE-2026-22813","published":"2026-01-12","fixed":"1.1.10","kev":false}],"package":"npm:opencode-ai"}}