Skip to content
HighVulnerability

CVE-2026-64651: @ai-sdk/harness-opencode tool relay authorization bypass by sandboxed processes

Identifier
CVE-2026-64651
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

The `@ai-sdk/harness-opencode` tool, prior to version 1.0.28, authorizes relay requests from any process whose command line contains the `host-tool-mcp.mjs` helper path, letting untrusted code in the sandbox invoke host-exposed tools such as secret lookups, deployment operations and cloud API calls without a model-authorized tool-call event. Exploitation requires Linux (the fallback checks `process.platform === 'linux'` and reads `/proc`), an active harness session with host-provided tools, and untrusted code running in the sandbox.

Mitigation

Fixed in version 1.0.28, which removes the process-path authorization fallback. Relay requests are now accepted only after exact, short-lived, one-time authorization matching the tool name and input from a bridge-observed model event. Workarounds: do not run the OpenCode harness on untrusted repositories or with untrusted dependencies, and/or limit host-exposed tools to non-sensitive operations when working with untrusted code.