CVE-2026-64650 Details
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.
An authorization bypass vulnerability has been identified in the `@ai-sdk/harness-opencode` tool, which serves as an adapter for HarnessV1, utilizing the OpenAI Codex SDK. This vulnerability exists in versions prior to 1.0.29. The issue arises because the tool improperly authorizes requests from processes whose command line includes a permitted helper script path, known as the Codex CLI shim. As a result, untrusted code running in a sandboxed environment can execute arbitrary host-exposed tools. This includes accessing secrets, performing deployment tasks, and making cloud API calls, all without the necessary model-authorized tool-call event. Exploitation of this vulnerability requires a Linux environment, an active Harness session with host-provided tools, and untrusted code in the sandbox, such as a malicious dependency or build script.
Users are advised to upgrade to version 1.0.29 or later, where this vulnerability has been patched. The fix involves removing the process-path authorization fallback and requiring exact, short-lived, one-time authorization that matches the tool name and input from a model event. Additionally, do not run the Codex harness on untrusted repositories or with untrusted dependencies, and limit host-exposed tools to non-sensitive operations when working with untrusted code.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 20, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/ai/pull/17105 | [email protected] | Issue TrackingVendor |
| https://github.com/vercel/ai/security/advisories/GHSA-qw9h-448j-6rph | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @ai-sdk/harness-codex | <= 1.0.28 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 20, 2026 | New CVE Received | [email protected] |
Volerion