9.4

CVE-2026-22813: Malicious website can execute commands on the local system through XSS in the OpenCode web UI

Analyzed
AliasesGHSA-c83v-7274-4vgp
Published 12-01-2026Last modified 13-01-2026

Vulnerability summary

CVE-2026-22813 is a critical (CVSS 9.4) vulnerability in anoma opencode. EPSS estimates a 0.91% chance of exploitation in the next 30 days, higher than 61% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.4/10
010
Critical · v4.0 (CVE.org)
EPSS score
0.91%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 12-01-2026
    PublishedVulnerability first disclosed.
  2. 13-01-2026
    Last modifiedVulnerability information updated.

Description

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 metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.91%

Chance of exploitation in the next 30 days

Percentile

61%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.91% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Opencode

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Anoma1 product
Anomalyco1 product
Npm1 product
  • opencode-ai< 1.1.10

3 vendors · 3 products

References

3 links