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.
References
| Link | Resource |
|---|---|
| https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp | Vendor Advisory Exploit |
| https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp | Vendor Advisory Exploit |
Configurations
History
21 Jan 2026, 15:15
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Anoma
Anoma opencode |
|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 6.1 |
| References | () https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp - Vendor Advisory, Exploit | |
| CPE | cpe:2.3:a:anoma:opencode:*:*:*:*:*:-:*:* |
13 Jan 2026, 19:16
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp - |
12 Jan 2026, 23:15
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-01-12 23:15
Updated : 2026-01-21 15:15
NVD link : CVE-2026-22813
Mitre link : CVE-2026-22813
CVE.ORG link : CVE-2026-22813
JSON object : View
Products Affected
anoma
- opencode
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
