MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-22813GHSA-c83v-7274-4vgp

Malicious website can execute commands on the local system through XSS in the OpenCode web UI

Not on CISA KEVCVSS 9.4 (v4.0)
  • Overview

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CISA Vulnrichment Source: CISA Vulnrichment
  • CVE List Source: CVE Program (cve.org)
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)