CVE-2026-64651: @ai-sdk/harness-opencode tool relay authorization bypass by sandboxed processes
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-64651
- Published
- Record updated
- 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.
Coverage
News, research and other items that mention CVE-2026-64651.
- AWS, Google, and Vercel Agent Flaws Let Attackers Trigger Tools Without Running the ModelThe Hacker News, 2026-08-06
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online