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.
Published: 2026-07-20
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Vercel
Vercel ai-sdk
Vendors & Products Vercel
Vercel ai-sdk

Mon, 20 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 20 Jul 2026 21:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T21:45:44.027Z

Reserved: 2026-07-20T17:11:30.895Z

Link: CVE-2026-64650

cve-icon Vulnrichment

Updated: 2026-07-20T21:45:40.564Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T18:30:05Z

Weaknesses