CVE-2026-64650

AI SDK Codex Harness Tool Relay Authorization Bypass

Published Jul 20, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
The `@ai-sdk/harness-opencode` tool is an HarnessV1 adapter backed by @openai/codex-sdk, which drives the codex command line interface. Prior to version 1.0.29, the tool relay authorizes requests from any process whose command line contains an allowed helper script path (the Codex CLI shim). 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.29 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 Codex harness on untrusted repositories or with untrusted dependencies, and/or limit host-exposed tools to non-sensitive operations when working with untrusted code.

Analysis

AI-generated

Technical impact

The @ai-sdk/harness-codex tool used the Codex CLI shim to authorize tool calls based on the command line of a process matching an allowed helper script path. Prior to version 1.0.29, if the command line contained this helper script path the call was accepted, allowing code running in a sandbox to invoke arbitrary host‑exposed tools without a model‑authorized tool call event. Consequently, an attacker could invoke secret lookups, deployment operations, or any other cloud API calls exposed through these tools, violating confidentiality, integrity, and availability. The weakness is a classic authorization bypass, identified as CWE‑863.

Affected Systems

All installations of Vercel's @ai-sdk/harness-codex with a version earlier than 1.0.29 on Linux systems where the harness is used with host‑provided tools. The vulnerability specifically targets the fallback that checks for a Linux platform and attempts to read /proc to verify the helper script path.

Risk and Exploitability

The CVSS score of 6.3 indicates moderate severity. The EPSS score of < 1% suggests a low likelihood of current exploitation, and the issue is not yet listed in CISA's KEV catalog. However, the attack requires an active harness session with a host‑provided tool suite and untrusted code executing within the sandbox, such as malicious dependencies or build scripts. If these conditions are met, the vulnerability can be leveraged to execute arbitrary host operations without proper authorization, potentially exposing secrets or performing unauthorized deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to @ai-sdk/harness-codex 1.0.29 or later to remove the process‑path authorization fallback
  • Limit host‑exposed tools to non‑sensitive operations when working with untrusted code
  • Do not run the Codex harness on untrusted repositories or with untrusted dependencies

Generated by OpenCVE AI on July 30, 2026 at 18:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Vercel
Vercel ai-sdk
Vendors & Products Vercel
Vercel ai-sdk
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The `@ai-sdk/harness-opencode` tool is an HarnessV1 adapter backed by @openai/codex-sdk, which drives the codex command line interface. Prior to version 1.0.29, the tool relay authorizes requests from any process whose command line contains an allowed helper script path (the Codex CLI shim). 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.29 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 Codex harness on untrusted repositories or with untrusted dependencies, and/or limit host-exposed tools to non-sensitive operations when working with untrusted code.
Title AI SDK Codex Harness Tool Relay Authorization Bypass
Weaknesses CWE-863
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 20, 2026, 9:45 PM
Reserved
Jul 20, 2026, 5:11 PM
Status
Deferred
Published
Jul 20, 2026, 9:16 PM
Modified
Oct 24, 2026, 8:10 PM