Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-64651

MEDIUM 6.3EPSS 4%

AI SDK OpenCode Harness Tool Relay Authorization Bypass

Mitigation

  • Upgrade @ai-sdk/harness-opencode to 1.0.29 or later.

Who should check

  • Anyone running vercel @ai-sdk/harness-opencode < 1.0.29

Vulnerability facts

Affected
vercel @ai-sdk/harness-opencode < 1.0.29
Fixed in
vercel @ai-sdk/harness-opencode 1.0.29
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.3 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: High
  • Integrity impact on other systems: High
  • Availability impact on other systems: None
EPSS
0.17% chance of exploitation in 30 days (percentile 4, 2026-11-26)
CWE
CWE-863
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
vercel @ai-sdk/harness-opencode< 1.0.29—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-64651. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64651.md
Affected: vercel @ai-sdk/harness-opencode < 1.0.29
Fixed in: vercel @ai-sdk/harness-opencode 1.0.29

Steps:
1. Search this machine and project for vercel @ai-sdk/harness-opencode: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-64651 being exploited?

There is no confirmed exploitation: CVE-2026-64651 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-64651?

Medium: CVSS 6.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-64651?

vercel @ai-sdk/harness-opencode < 1.0.29.

Is there a fix for CVE-2026-64651?

Yes. Fixed in vercel @ai-sdk/harness-opencode 1.0.29. Upgrade @ai-sdk/harness-opencode to 1.0.29 or later.

How do I check if I'm affected by CVE-2026-64651?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors