Malicious website can execute commands on the local system through XSS in the OpenCode web UI
CVE-2026-22813 · GHSA-c83v-7274-4vgp · published 2026-01-13
- Severity
- Critical
- CVSS score
- 9.4
- Chance of exploitation (EPSS)
- 0.91%
- Fixed in
- 1.1.10
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Total
- CISA SSVC
A malicious website can abuse the server URL override feature of the OpenCode web UI to achieve cross-site scripting on http://localhost:4096. From there, it is possible to run arbitrary commands on the local system using the /pty/ endpoints provided by the OpenCode API.
Upgrade opencode-ai to 1.1.10 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| opencode-ai | npm | < 1.1.10 | 1.1.10 |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
- HighAny authenticated user can steal another user's session token via script embedded in a DOCX previewopen-webui
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.