GHSA-w6wx-jq6j-6mcj: OpenClaw: pnpm dlx approvals did not bind local script operands
OpenClaw 2026.4.1 and earlier does not bind the local script in a pnpm dlx command to the approval. An operator can approve a harmless script, and someone can swap its contents before it runs while the approval stays valid. Upgrade to 2026.4.2.
Published Apr 7, 2026 · Analysis Oct 30, 2026
What an attacker can do
OpenClaw's node host plans system.run commands and records an approval for them. For script runners, the planner in src/node-host/invoke-system-run-plan.ts pins the local script file, so that a changed file fails revalidation. The pnpm exec flows did this. The pnpm dlx flow did not, and a local script operand was left unbound.
The sequence is: the operator approves a command such as pnpm dlx with a local script, the script file is edited, then the command runs with the approval still in force. The edited script executes with whatever rights the node host has.
The attacker needs a way to change the script between approval and execution. That could be another process on the host, a shared workspace, or an agent that writes the file after proposing the command. The advisory calls it an approval-integrity bug. It defeats the point of review, since the operator approves content that is not what runs. Teams that approve agent commands on a node host are the exposed group.
Who is affected
openclaw on npm, version 2026.4.1 and earlier, in node-host flows that approve pnpm dlx commands. Check the installed version:
npm ls openclawUse npm ls -g openclaw for a global install.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.4.1
- Fixed in
- 2026.4.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.2 or later:
npm install [email protected]Commit 176c059b05357df1bc09d4328a2380670859eeff routes pnpm dlx through the planner's mutable-script path. Per its tests, a local script is bound to the approval across many pnpm flag forms, and a script changed after approval fails revalidation. Calls with unknown pnpm flags are rejected. The advisory lists no workaround. Until you upgrade, approve pnpm dlx commands only when the script cannot be edited by others.
How to tell if you were hit
Review approval and exec logs for pnpm dlx commands that ran a local script, and compare the script's modification time with the approval time. Version control or file-integrity records show whether a script changed after review. The sources give no log line for this bug. Beam records agent shell commands and file access, which can show a script being rewritten between an approval and its run.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Before OpenClaw 2026.4.2, pnpm dlx approval planning did not bind local script operands the same way as related pnpm exec flows. A local script approved through a pnpm dlx path could be replaced before execution without invalidating the approval.
Impact
An operator could approve a benign local script and then execute modified script contents through the still-valid approval plan. This was an approval-integrity bug in the node-host command-planning path.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.4.1 - Patched versions:
>= 2026.4.2 - Latest published npm version:
2026.4.1
Fix Commit(s)
176c059b05357df1bc09d4328a2380670859eeff— bind local scripts inpnpm dlxapproval plans
Release Process Note
The fix is present on main and is staged for OpenClaw 2026.4.2. Publish this advisory after the 2026.4.2 npm release is live.
Thanks @Kazamayc for reporting.
Credited to Kazamayc.
Questions
- Which OpenClaw version fixes the pnpm dlx approval issue?
2026.4.2. Versions up to and including 2026.4.1 are affected.
- What did pnpm exec do differently?
The advisory says pnpm exec flows already bound local script operands to the approval. The pnpm dlx path did not, which is the gap the fix closes.
- Does the entry have a CVE?
No CVE id is listed. It is tracked as GHSA-w6wx-jq6j-6mcj.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
