CVE-2026-22813: Vulnerability in Anoma Opencode

Critical. 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.

npm, CWE-79

Exploitation
None confirmed
Severity
9.4 of 10
Attack likelihood
0.9 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-c83v-7274-4vgp
EU ID
EUVD-2026-2091
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Weakness
CWE-79
Published
12 Jan 2026
Last change
17 Jun 2026
Likelihood rank
Higher than 61 % of all rated vulnerabilities
Analysis status
Analyzed
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Anoma Opencode Before 1.1.10. Fixed in 1.1.10

Affected packages

Vulnerable version ranges and fixed releases

  • opencode-ai npm, Affected before 1.1.10. Fixed in 1.1.10

Exploit code

Public exploits and proofs of concept, handle with care

Related