Vulnerabilities

Vulnerability · CVE-2026-22813

OpenCode is an open source AI coding agent.

Published Jan 12, 2026 · catalog updated Jan 13, 2026 · OpenCode is an open

Last checked Nov 6, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-22813. EPSS is 0.91%. Act only if a listed version of OpenCode is an open is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (OpenCode is an open).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.

Same product and reporting

Severity
Critical9.4
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.91%
Remediation
Version ranges on file
Affected products
vendor anomalyco opencode < 1.1.10

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.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • vendor anomalyco opencode < 1.1.10< 1.1.10

How to fix CVE-2026-22813

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-22813. EPSS is 0.91%. Act only if a listed version of OpenCode is an open is installed.

Which versions are affected?

Compare what you have installed with anomalyco opencode < 1.1.10 < 1.1.10. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

No weakness class is stored. EPSS 0.91%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Jan 12, 2026 · EUVD

    Detected

    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

  2. Jan 13, 2026 · EUVD

    Updated

    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

Sources

  • CVE.orgVulnerability recordCVE-2026-22813

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2026-22813

    30-day exploitation probability 0.91%

    first.org
  • EUVDVulnerability recordEUVD-2026-2091

    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

    euvd.enisa.europa.eu

References

Freshness

Last verified in this catalog Nov 6, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • FIRST EPSSNov 6, 2026
  • CVE.orgOct 30, 2026
  • EUVDOct 30, 2026