{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/83413?format=json","vulnerability_id":"VCID-6371-kaex-gybe","summary":"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.","aliases":[{"alias":"CVE-2026-22813"}],"fixed_packages":[],"affected_packages":[],"references":[{"reference_url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp","reference_id":"GHSA-c83v-7274-4vgp","reference_type":"","scores":[{"value":"9.4","scoring_system":"cvssv4","scoring_elements":"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"},{"value":"Track*","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2026-01-13T14:13:29Z/"}],"url":"https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp"}],"weaknesses":[{"cwe_id":79,"name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."}],"exploits":[],"severity_range_score":"9.4 - 9.4","exploitability":null,"weighted_severity":null,"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-6371-kaex-gybe"}