Intel

AIKIDO-2026-10027

opencode-ai is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)CVE-2026-22813 Published Jan 13, 2026

94

Critical Risk

This Affects:

JSopencode-ai
0.0.1 - 1.1.9
Fixed in 1.1.10
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to cross-site scripting on the OpenCode localhost web UI due to unsanitized HTML rendering and a server URL override feature. An attacker can leverage JavaScript execution on http://localhost:4096 to access the /pty/ API endpoints and spawn arbitrary processes, resulting in local code execution.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

opencode-ai is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 1.1.9.

How to fix this

Upgrade the opencode library to the patch version.