Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local filesystem write access to script path
-
DeliveryIdentify operator using pnpm dlx with local script via OpenClaw
-
ExploitWait for operator to initiate approval flow
-
ExecutionReplace approved local script with malicious payload
-
ImpactOpenClaw executes modified script under still-valid approval
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires all of the following: (1) the attacker has local write access to the filesystem path of the approved script - remote or unauthenticated exploitation is not possible; (2) the target environment runs OpenClaw version 2026.4.1 or earlier and uses pnpm dlx with a local script operand (e.g., ./run.ts) through OpenClaw's node-host approval path - the pnpm exec flow was not affected; (3) an operator must initiate and complete an approval for the targeted pnpm dlx invocation (UI:P passive interaction required - exploitation cannot occur without this step); (4) the attacker must successfully time the script replacement into the window between operator approval and script execution (AC:H). Limiting factors: requires local filesystem co-presence, a timing race, and operator interaction - none of which can be forced or automated remotely. The vulnerability does not apply to pnpm exec flows or to remote-package (non-local-script) dlx invocations. |
| Impact | The CVSS 4.0 score of 5.4 accurately reflects significant real-world constraints: local attack vector (AV:L), high complexity (AC:H requiring precise timing), low privilege (PR:L), and passive user interaction (UI:P - an operator must initiate and complete the approval flow). Despite SSVC rating technical impact as total and C/I/A all set to High on the vulnerable system, actual exploitability is tightly bounded: an attacker must share local filesystem write access to the specific script path, successfully time a file replacement into a narrow execution window, and depend on operator behavior. EPSS at 0.01% (1st percentile) and SSVC exploitation status of 'none' confirm no observed exploitation. SSVC also rates this as not automatable. The gap between the total theoretical impact and constrained exploitability is the defining characteristic of this vulnerability - it is a meaningful design flaw in an approval-integrity model but not a practically dangerous remote threat. |
| Exploit ScenarioDerived | A low-privileged local attacker shares filesystem access with an operator running OpenClaw. The operator reviews and approves a pnpm dlx tsx ./build.ts invocation, inspecting the benign build.ts content. In the narrow window between approval and execution, the attacker overwrites build.ts with a malicious payload; because the pnpm dlx approval plan did not bind the script operand, OpenClaw executes the replaced contents under the still-valid approval, achieving arbitrary code execution with the operator's privileges. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Approval integrity bypass in OpenClaw's pnpm dlx command-planning path (all versions up to 2026.4.1) allows a low-privileged local attacker to replace an approved local script between the approval decision and actual execution, running arbitrary code under a still-valid approval plan. The root cause is a TOCTOU flaw (CWE-367): unlike the parallel pnpm exec flow, pnpm dlx did not bind local script operands into the approval plan's mutable-file tracking, leaving the script file unmonitored after approval. No active exploitation is confirmed (EPSS 0.01%, SSVC exploitation: none), though SSVC rates technical impact as total given full C/I/A exposure on the vulnerable system.
RemediationAI
Upgrade OpenClaw to version 2026.4.2 or later, which binds pnpm dlx local script operands through the approval planner's mutable-script tracking path before any approval is granted, closing the TOCTOU window. The fix is documented in GitHub Security Advisory GHSA-w6wx-jq6j-6mcj (https://github.com/openclaw/openclaw/security/advisories/GHSA-w6wx-jq6j-6mcj) and implemented in commit 176c059b05357df1bc09d4328a2380670859eeff (https://github.com/openclaw/openclaw/commit/176c059b05357df1bc09d4328a2380670859eeff). If immediate upgrade is not possible, restrict local filesystem write access for all accounts that share the environment with OpenClaw operators, reducing an attacker's ability to modify script files between approval and execution - though this imposes operational constraints on shared-user environments. As an additional workaround, avoid invoking local-path scripts (e.g., ./run.ts) through OpenClaw's pnpm dlx approval flow until patched; this eliminates the vulnerable code path at the cost of restricting scripted workflows that rely on this invocation pattern.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenClaw (npm package, CPE: cpe:2.3:a:openclaw:openclaw) provides an AI coding-agent harness that integrates with pnpm's dlx and exec subcommands via a node-host command-planning and approval pipeline. CWE-367 (Time-of-check Time-of-use race condition) describes the root cause precisely: during approval planning, pnpm dlx invocations did not resolve and bind local script operands (e.g., ./run.ts) into the plan's mutableFileOperand field, while the pnpm exec path correctly tracked these via revalidateApprovedMutableFileOperand. This asymmetry left a window between operator approval and script execution in which a co-located attacker could overwrite the script file without invalidating the approval. The fix commit 176c059b05357df1bc09d4328a2380670859eeff routes pnpm dlx through the same mutable-script binding logic used by pnpm exec, closing the TOCTOU window.
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local filesystem write access and script-replacement timing require AV:L and AC:H; some system presence needed (PR:L); operator must complete approval (UI:R); no scope change (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
OpenClaw before 2026.4.2 contains an approval integrity vulnerability in pnpm dlx that fails to bind local script operands consistently with pnpm exec flows. Attackers can replace approved local scripts before execution without invalidating the approval plan, allowing execution of modified script contents.
Blast Radius
ecosystem impact- 5 npm packages depend on openclaw (5 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.4.2.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
EUVD-2026-25344
GHSA-v3p7-858r-pr8m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB