CVE-2026-22813

6.1 MEDIUM
Published: January 12, 2026 Modified: January 21, 2026
View on NVD

Description

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp
Source: security-advisories@github.com
Vendor Advisory Exploit
https://github.com/anomalyco/opencode/security/advisories/GHSA-c83v-7274-4vgp
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vendor Advisory Exploit

2 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.1 / 10.0
EPSS (Exploit Probability)
0.1%
17th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

anoma