Skip to main content
Mallory
MediumVulnerability

CVE-2026-64651: Authorization bypass in @ai-sdk/harness-opencode relay

Published Jul 20, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.3Medium · v4
EPSS0.17%4th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-64651CWE-863 · Incorrect Authorization

CVE-2026-64651 is an authorization flaw in @ai-sdk/harness-opencode affecting versions through 1.0.27. The package connects HarnessAgent to OpenCode through a sandboxed bridge, but the vulnerable relay accepted requests from any process whose command line contained the path of an approved helper script. In the Linux-specific fallback path, the relay inspected process information via /proc and treated the presence of the helper script path in the command line as sufficient authorization. As a result, untrusted code already executing inside the sandbox could satisfy the check and invoke arbitrary host-exposed tools without a corresponding model-authorized tool-call event. This is an execution-layer authorization bypass that breaks the intended trust boundary between sandboxed code and host tool execution.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows sandboxed untrusted code to bypass the intended model-mediated authorization flow and directly invoke host-exposed tools. Depending on which tools are available in the active harness session, this can enable unauthorized secret retrieval, deployment actions, cloud API operations, and other privileged host-side actions. The issue therefore creates a path from sandboxed code execution to unauthorized access to sensitive capabilities on the host side.

Mitigation

If you can’t patch tonight, do this now.

Until the fixed version is deployed, avoid running the OpenCode harness on untrusted repositories or with untrusted dependencies. Where use with untrusted code cannot be avoided, reduce the exposed host tool set to non-sensitive operations only. Limiting available host-side capabilities reduces the impact of unauthorized relay invocation from sandboxed code.

Remediation

Patch, then assume compromise.

Upgrade @ai-sdk/harness-opencode to version 1.0.28 or later. The fix removes the process-path authorization fallback entirely and restricts relay acceptance to exact, short-lived, one-time authorization that matches the tool name and input observed from a legitimate bridge-mediated model event.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
FAQ

Frequently asked questions

Is CVE-2026-64651 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2026-64651 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-64651?
As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-64651.
Is there a patch for CVE-2026-64651?
Upgrade @ai-sdk/harness-opencode to version 1.0.28 or later. The fix removes the process-path authorization fallback entirely and restricts relay acceptance to exact, short-lived, one-time authorization that matches the tool name and input observed from a legitimate bridge-mediated model event.
How severe is CVE-2026-64651?
CVE-2026-64651 has a CVSS v4 score of 6.3 (Medium) and an EPSS score of 0.17% (4th percentile) as of Sep 25, 2026.
Activity feed

Recent activity

3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.