# CVE-2026-64650: AI SDK Codex Harness Tool Relay Authorization Bypass

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-863
- **Published:** 2026-07-20T20:27:41.349Z
- **Modified:** 2026-10-24T20:10:00.137Z

## Who should check

- Anyone running vercel @ai-sdk/harness-codex \< 1.0.29

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

## Affected and fixed versions

- vercel @ai-sdk/harness-codex: \< 1.0.29 (cvelist)

## Mitigation

- Upgrade @ai-sdk/harness-codex to 1.0.29 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64650. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64650.md
Affected: vercel @ai-sdk/harness-codex < 1.0.29
Fixed in: vercel @ai-sdk/harness-codex 1.0.29

Steps:
1. Search this machine and project for vercel @ai-sdk/harness-codex: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64650 being exploited?

There is no confirmed exploitation: CVE-2026-64650 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64650?

Medium: CVSS 6.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64650?

vercel @ai-sdk/harness-codex \< 1.0.29.

### Is there a fix for CVE-2026-64650?

Yes. Fixed in vercel @ai-sdk/harness-codex 1.0.29. Upgrade @ai-sdk/harness-codex to 1.0.29 or later.

### How do I check if I'm affected by CVE-2026-64650?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/vercel/ai/security/advisories/GHSA-qw9h-448j-6rph>
- patch: <https://github.com/vercel/ai/pull/17105>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64650>

HTML: <https://flawdb.com/CVE-2026-64650> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64650>
