CVE-2026-64651: CWE-863: Incorrect Authorization in vercel @ai-sdk/harness-opencode
CVE-2026-64651 is an incorrect authorization vulnerability in the vercel @ai-sdk/harness-opencode tool prior to version 1.0.28. The tool improperly authorizes requests from any process whose command line contains a specific helper script path, allowing untrusted sandboxed code to invoke sensitive host-exposed tools without proper authorization. This issue affects Linux environments with an active harness session and untrusted code executing in the sandbox. The vulnerability is fixed in version 1.0.28 by removing the fallback authorization and enforcing exact, short-lived, one-time authorization based on observed model events.
AI Analysis
Technical Summary
The @ai-sdk/harness-opencode tool connects HarnessAgent to OpenCode via a sandboxed bridge. Before version 1.0.28, it authorized relay requests based on a process command line containing an allowed helper script path, which allowed untrusted sandboxed code to invoke arbitrary host-exposed tools such as secret lookups, deployment operations, and cloud API calls without proper model-authorized tool-call events. Exploitation requires a Linux environment, an active harness session with host tools, and untrusted code executing in the sandbox. The fix in version 1.0.28 removes this fallback authorization and requires exact, short-lived, one-time authorization matching tool names and inputs from bridge-observed model events. Workarounds include not running the harness on untrusted repositories or dependencies and limiting host-exposed tools to non-sensitive operations when untrusted code is present.
Potential Impact
Untrusted code executing in the sandbox can bypass intended authorization controls and invoke sensitive host-exposed tools, potentially leading to unauthorized secret lookups, deployment operations, and cloud API calls. This could compromise confidentiality and integrity of operations managed by the harness. The vulnerability requires specific conditions including Linux platform, an active harness session, and untrusted sandboxed code.
Mitigation Recommendations
A fix is available in version 1.0.28 of @ai-sdk/harness-opencode, which removes the vulnerable authorization fallback and enforces strict one-time authorization. Until upgrading, users should avoid running the OpenCode harness on untrusted repositories or with untrusted dependencies, and limit host-exposed tools to non-sensitive operations when working with untrusted code. Patch status is not explicitly confirmed in the vendor advisory, but the fix is described in version 1.0.28 release notes. Users should upgrade to version 1.0.28 or later to remediate this vulnerability.
CVE-2026-64651: CWE-863: Incorrect Authorization in vercel @ai-sdk/harness-opencode
Description
CVE-2026-64651 is an incorrect authorization vulnerability in the vercel @ai-sdk/harness-opencode tool prior to version 1.0.28. The tool improperly authorizes requests from any process whose command line contains a specific helper script path, allowing untrusted sandboxed code to invoke sensitive host-exposed tools without proper authorization. This issue affects Linux environments with an active harness session and untrusted code executing in the sandbox. The vulnerability is fixed in version 1.0.28 by removing the fallback authorization and enforcing exact, short-lived, one-time authorization based on observed model events.
CVSS v4.0
Score 6.3medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @ai-sdk/harness-opencode tool connects HarnessAgent to OpenCode via a sandboxed bridge. Before version 1.0.28, it authorized relay requests based on a process command line containing an allowed helper script path, which allowed untrusted sandboxed code to invoke arbitrary host-exposed tools such as secret lookups, deployment operations, and cloud API calls without proper model-authorized tool-call events. Exploitation requires a Linux environment, an active harness session with host tools, and untrusted code executing in the sandbox. The fix in version 1.0.28 removes this fallback authorization and requires exact, short-lived, one-time authorization matching tool names and inputs from bridge-observed model events. Workarounds include not running the harness on untrusted repositories or dependencies and limiting host-exposed tools to non-sensitive operations when untrusted code is present.
Potential Impact
Untrusted code executing in the sandbox can bypass intended authorization controls and invoke sensitive host-exposed tools, potentially leading to unauthorized secret lookups, deployment operations, and cloud API calls. This could compromise confidentiality and integrity of operations managed by the harness. The vulnerability requires specific conditions including Linux platform, an active harness session, and untrusted sandboxed code.
Mitigation Recommendations
A fix is available in version 1.0.28 of @ai-sdk/harness-opencode, which removes the vulnerable authorization fallback and enforces strict one-time authorization. Until upgrading, users should avoid running the OpenCode harness on untrusted repositories or with untrusted dependencies, and limit host-exposed tools to non-sensitive operations when working with untrusted code. Patch status is not explicitly confirmed in the vendor advisory, but the fix is described in version 1.0.28 release notes. Users should upgrade to version 1.0.28 or later to remediate this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-20T17:11:30.896Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5e8bb32a4a8d5989b8f9c0
Added to database: 07/20/2026, 20:57:23 UTC
Last enriched: 07/20/2026, 21:12:24 UTC
Last updated: 07/21/2026, 05:16:55 UTC
Views: 15
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.