CVE-2026-64650: @ai-sdk/harness-opencode - Broken Access Control
- Cve: CVE-2026-64650
- Name: @ai-sdk/harness-opencode - Broken Access Control
- 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.
- Impact: Untrusted code can invoke arbitrary host tools, leading to secret leaks, unauthorized deployments, and cloud API calls.
- Remediation: Update to version 1.0.29 or later which removes the process-path authorization fallback.
- Vulnerability type: broken_access_control
- Vulnerability impact: broken_access_control
- Requirements: Requires Linux environment, active harness session, and untrusted code executing in sandbox
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.3
- Cvss 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Epss score: 0.00174
- Epss percentile: 0.06864
- Assignee: [email protected]
- Published at: 2026-07-20T21:16:50Z
- Age in days: 127
- Modified at: 2026-10-24T20:10:00Z
- References total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-64650
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirement type
Cwe
| Id | Name |
|---|---|
| CWE-863 | Incorrect Authorization |
Hackerone
- Reports: 7
- Rank: 416
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/vercel/ai/pull/17105 | nvd | |
| https://github.com/vercel/ai/security/advisories/GHSA-qw9h-448j-6rph | nvd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| vercel/ai | pull, security_advisory | yes | /v1/repositories/vercel/ai |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Hackerone reports: 7
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts