CVE-2026-22813

O

penCode 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.

Configurations

Configuration 1 (hide)

cpe:2.3:a:anoma:opencode:*:*:*:*:*:-:*:*

History

21 Jan 2026, 15:15

Type Values Removed Values Added
First Time Anoma
Anoma opencode
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 6.1
References () https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp - () 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 - () 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
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')