CVE-2026-22813
Critical · 9.6Malicious website can execute commands on the local system through XSS in the OpenCode web UI
CVSS
9.6
EPSS
0.9%
Published
Jan 13, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | opencode-ai | 0 | 1.1.10 |
Related vulnerabilities
- GHSA-c83v-7274-4vgp Malicious website can execute commands on the local system through XSS in the OpenCode… Same vulnerability
- GHSA-vxw4-wv6m-9hhh OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution Also affects opencode-ai
- CVE-2026-22812 OpenCode's Unauthenticated HTTP Server Allows Arbitrary Command Execution Also affects opencode-ai
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96361 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96362 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79