Intel

AIKIDO-2026-260577

opencode-ai is vulnerable to Missing Authentication

Missing AuthenticationCVE-2026-22812 Published 2 days ago

88

High Risk

This Affects:

JSopencode-ai
0.0.1 - 1.0.215
Fixed in 1.0.216
Are you affected? Scan for Free

TL;DR

OpenCode's HTTP server starts automatically without authentication middleware and with permissive CORS (Access-Control-Allow-Origin: *). Any local process—or a malicious website via cross-origin requests—can call endpoints such as POST /session/:id/shell, POST /pty, and GET /file/content to run arbitrary shell commands and read files under the user's privileges. The fix authenticates the HTTP server before accepting those requests.

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 Missing Authentication in versions 0.0.1 - 1.0.215.

How to fix this

Upgrade the opencode-ai library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform