opencode-ai is vulnerable to Remote Code Execution (RCE)
94
Critical Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
opencode-ai is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 1.1.9.
Upgrade the opencode library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant