Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-22813: OpenCode markdown renderer allows HTML injection leading to script execution

Identifier
CVE-2026-22813
Published
Record updated
View JSON
Affected
  • opencode-ai < 1.1.10
Fixed in
1.1.10
  • released January 9, 2026, 3 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

CVE-2026-22813 affects OpenCode, an open source AI coding agent. The markdown renderer for LLM responses inserts arbitrary HTML into the DOM without DOMPurify sanitization or a CSP on the web interface, so controlling a chat session's LLM response yields JavaScript execution on the http://localhost:4096 origin. GitHub, Inc. assigned a CVSS 4.0 base score of 9.4 (CRITICAL), while NIST has not yet provided an assessment.

Mitigation

Fixed in 1.1.10