Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-64650: CWE-863: Incorrect Authorization in vercel @ai-sdk/harness-codex

0
Medium
VulnerabilityCVE-2026-64650cvecve-2026-64650cwe-863
Published: 07/20/2026 (07/20/2026, 20:27:41 UTC)
Source: CVE Database V5
Vendor/Project: vercel
Product: @ai-sdk/harness-codex

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.

CVSS v4.0

Score 6.3medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/20/2026, 21:12:33 UTC

Technical Analysis

The @ai-sdk/harness-opencode tool, a HarnessV1 adapter backed by @openai/codex-sdk, prior to version 1.0.29, authorizes relay requests from any process whose command line contains an allowed helper script path. This fallback authorization mechanism allows untrusted code executing in a Linux sandbox to invoke arbitrary host-exposed tools such as secret lookups, deployment operations, and cloud API calls without a corresponding model-authorized tool-call event. The vulnerability requires a Linux environment (due to platform checks and /proc reading), an active harness session with host-provided tools, and untrusted code execution in the sandbox (e.g., malicious dependencies or build scripts). The fix in version 1.0.29 removes this fallback authorization and requires exact, short-lived, one-time authorization matching the tool name and input from a bridge-observed model event. Workarounds include not running the Codex harness on untrusted repositories or dependencies and limiting host-exposed tools to non-sensitive operations when working with untrusted code.

Potential Impact

An attacker with untrusted code execution in the sandbox on a Linux environment can exploit this vulnerability to invoke arbitrary host-exposed tools without proper authorization. This can lead to unauthorized secret lookups, deployment operations, and cloud API calls, potentially compromising sensitive information and operations. The vulnerability does not require user interaction or privileges beyond untrusted code execution in the sandbox.

Mitigation Recommendations

A fix is available in version 1.0.29 of @ai-sdk/harness-codex, which removes the insecure fallback authorization mechanism and enforces strict, short-lived authorization tied to model events. Until upgrading, it is recommended not to run the Codex harness on untrusted repositories or with untrusted dependencies. Additionally, limit host-exposed tools to non-sensitive operations when working with untrusted code to reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-20T17:11:30.895Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a5e8bb32a4a8d5989b8f9bc

Added to database: 07/20/2026, 20:57:23 UTC

Last enriched: 07/20/2026, 21:12:33 UTC

Last updated: 07/21/2026, 05:25:01 UTC

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses