CVE-2026-64651
Last modified
CVE-2026-64651 is a medium-severity vulnerability rated 6.3/10 on the CVSS scale. The `@ai-sdk/harness-opencode` tool connects HarnessAgent to OpenCode through a sandboxed bridge. Prior to version 1.0.28, the tool relay authorizes requests from any process whose command line contains an allowed helper script path (`host-tool-mcp.mjs`). EPSS estimates a 0.11% chance of exploitation in the next 30 days.
Description
The `@ai-sdk/harness-opencode` tool connects HarnessAgent to OpenCode through a sandboxed bridge. Prior to version 1.0.28, the tool relay authorizes requests from any process whose command line contains an allowed helper script path (`host-tool-mcp.mjs`). This allows untrusted code executing in the sandbox to invoke arbitrary host-exposed tools including secret lookups, deployment operations, and cloud API calls without a corresponding model-authorized tool-call event. Exploitation requires a Linux environment (the vulnerable fallback checks `process.platform === 'linux'` and reads `/proc`); an active harness session with one or more host-provided tools; and untrusted code executing in the sandbox (e.g. a malicious dependency, build script, or lifecycle hook) The fix in version 1.0.28 removes the process-path authorization fallback entirely. Relay requests are now only accepted after exact, short-lived, one-time authorization matching the tool name and input from a bridge-observed model event. Some workarounds are available. 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.
Metrics
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| vercel | @ai-sdk/harness-opencode | < 1.0.29 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-64651?
How severe is CVE-2026-64651?
How do I fix CVE-2026-64651?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-64645Next.js is a React framework for building full-stack web app…6.1
- CVE-2026-64646Next.js is a React framework for building full-stack web app…5.3
- CVE-2026-64647Next.js is a React framework for building full-stack web app…5.4
- CVE-2026-64648Next.js is a React framework for building full-stack web app…5.4
- CVE-2026-64649Next.js is a React framework for building full-stack web app…6.5
- CVE-2026-64650The `@ai-sdk/harness-opencode` tool is an HarnessV1 adapter …6.3
- CVE-2026-64652GitHub CLI (gh) is GitHub's official command line tool. Prio…3.3
- CVE-2026-64653GitHub CLI (gh) is GitHub’s official command line tool. Prio…5.1
- CVE-2026-64654GitHub CLI (gh) is GitHub's official command line tool. Prio…5.3
- CVE-2026-64655GitHub CLI (gh) is GitHub’s official command line tool. Prio…2.1
- CVE-2026-64662Statamic is a Laravel and Git powered content management sys…6.5
- CVE-2026-64663Statamic is a Laravel and Git powered content management sys…6.5
Are you affected by CVE-2026-64651?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
