CVE-2026-22813
CVE-2026-22813 · Malicious website can execute commands on the local system through XSS in the OpenCode web UI
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 9.4 · Critique · EPSS 0,9% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: node
Produits et versions concernés
opencode
- Versions du logiciel
- < 1.1.10: Concernée
Aucun correctif publié
opencode-ai npm
- Plages de versions concernées
- SEMVER: < 1.1.10
Mettez à jour vers 1.1.10