LiveActive security incident?Get immediate response
CVE Record

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

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.

CriticalCVSS 9.4Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2026-22813 affects OpenCode, an open source AI coding agent. A crafted LLM response can inject HTML/JavaScript into the local web UI and run in the localhost OpenCode origin. The advisory says this can lead to command execution on the local system. OpenCode versions before 1.1.10 are affected.

Executive priority

Treat as urgent for teams using OpenCode. The vulnerability is critical, affects developer endpoints, and the advisory states possible local command execution. Prioritize upgrade to 1.1.10, then confirm coverage across engineering workstations.

Technical view

The issue is CWE-79 XSS in OpenCode’s markdown renderer for LLM responses. It inserts arbitrary HTML into the DOM without DOMPurify-style sanitization or a Content Security Policy. An attacker who controls a chat response can execute JavaScript on http://localhost:4096. CVSS v4.0 score is 9.4. Fixed version: 1.1.10.

Likely exposure

Systems running anomalyco OpenCode below 1.1.10 are exposed, especially where users interact with untrusted prompts, model outputs, repositories, or websites that can influence a chat session. The vulnerable service is described as the local web UI on localhost:4096.

Exploitation context

The source describes user interaction as required and exploitation through controlled LLM response content rendered in the web UI. No cited source or KEV entry indicates active exploitation in the wild. Public evidence is limited to the CVE record and GitHub advisory.

Researcher notes

The public description does not provide full exploit mechanics beyond unsafe HTML rendering of LLM responses and JavaScript execution on localhost:4096. Avoid assuming broader network exposure or active exploitation without additional evidence. Key validation is version-based because the fixed release is explicitly named.

Mitigation direction

  • Upgrade OpenCode to version 1.1.10 or later.
  • Identify and prioritize developer workstations running OpenCode before 1.1.10.
  • Review vendor advisory for any additional hardening guidance.
  • Limit interaction with untrusted content until upgraded.

Validation and detection

  • Check installed OpenCode version on developer systems.
  • Confirm affected installations are below 1.1.10.
  • Verify upgraded systems report OpenCode 1.1.10 or later.
  • Review local OpenCode usage where untrusted LLM responses were rendered.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-22813 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.4 (4.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.4CVSS 4.0CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

9.4Critical
CVSS 4.0 vector shape for CVE-2026-22813Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
anomalycoopencode< 1.1.10Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.