Malicious website can execute commands on the local system through XSS in the OpenCode web UI
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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 for a chat session gets JavaScript execution on the http://localhost:4096 origin. This vulnerability is fixed in 1.1.10.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| anomalyco | opencode | before 1.1.10 | 1.1.10 | Patch available | CNA |
| — | opencode-ai (npm) | before 1.1.10 | 1.1.10 | Patch available | GHSA-c83v-7274-4vgp |
- opencode Vendoranomalyco Affected before 1.1.10 Fixed in 1.1.10 Patch available CNA
- opencode-ai (npm) Vendor— Affected before 1.1.10 Fixed in 1.1.10 Patch available GHSA-c83v-7274-4vgp
Remediation
- Fix · CNA opencode (anomalyco) Fixed in 1.1.10
- Fix · GHSA-c83v-7274-4vgp opencode-ai (npm) Fixed in 1.1.10 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-22813
- 2026-10-03 Alias added: GHSA-c83v-7274-4vgp
References
More anomalyco vulnerabilities
- TI-2026-82374 OS command injection in open via PowerShell on Windows CVSS 4.0HIGH 7.7
Sources
- CVE-2026-22813 · CVE Program
- CVE-2026-22813 · NVD
- FIRST EPSS
- GHSA-c83v-7274-4vgp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences