Intel

AIKIDO-2026-796970

@ai-sdk/harness-opencode is vulnerable to Authorization Bypass

Authorization BypassCVE-2026-64651 Published Aug 5, 2026

63

Medium Risk

This Affects:

JS@ai-sdk/harness-opencode
1.0.11 - 1.0.27
Fixed in 1.0.28
Are you affected? Scan for Free

TL;DR

The OpenCode harness in @ai-sdk/harness-opencode relays tool calls from sandboxed code to host-exposed tools, and a fallback authorization path accepts any request whose calling process command line contains an allowed helper script path. On Linux the relay reads /proc and grants authorization on that path match instead of requiring a model-authorized tool-call event. Untrusted code running in the sandbox, such as a malicious dependency or lifecycle hook, can therefore invoke arbitrary host tools including secret lookups, deployment operations, and cloud API calls. The fix removes the process-path fallback and only accepts relay requests that match a short-lived, one-time authorization derived from a bridge-observed model event.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the harness on Linux with one or more host-provided tools while untrusted code executes in the sandbox.

Background info

@ai-sdk/harness-opencode is vulnerable to Authorization Bypass in versions 1.0.11 - 1.0.27.

How to fix this

Upgrade the @ai-sdk/harness-opencode 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