CVE-2026-41352: OpenClaw: Device-Paired Node Skips Node Scope Gate → Host RCE.md
OpenClaw up to 2026.3.28 enabled every allowlisted node command for a node that was only device-paired, without node pairing approval. That lets a low-privilege node run commands such as system.run on the host. Upgrade to 2026.3.31.
Published Apr 3, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
When a client connects to the gateway with the node role, it declares the commands it supports. The gateway should enable a command only if the server allowlist permits it and an operator approved the node. In the affected versions, a node that had no node pairing record was treated as allowed for everything on the allowlist. A node that was merely device-paired therefore skipped the node scope gate.
The fix commit shows the consequence. An unpaired node that declares canvas.snapshot and system.run now gets zero enabled commands, and node.invoke for either is rejected. Before the fix, those commands worked, so system.run gave host code execution.
The attacker needs a device-paired node, which the CVSS vector reflects as low privileges, and a gateway reachable over the network. The maintainers rate it high rather than critical because of the pairing and setup prerequisites. The result is remote code execution on the host that runs the OpenClaw gateway.
Who is affected
The npm package openclaw, versions 2026.3.28 and earlier. The maintainers confirmed the issue in the shipped v2026.3.28. Deployments that let nodes connect to the gateway are the exposed ones. Check the version:
npm ls openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.28
- Fixed in
- 2026.3.31
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.31, the first stable tag with the fix.
npm install -g [email protected]The fix is in src/gateway/server/ws-connection/message-handler.ts. The gateway now intersects the declared commands with the allowlist, looks up the paired node, and files a pairing request with a node.pair.requested broadcast if none exists. Enabled commands are only those that appear in the approved pairing record. Pending requests record only allowlisted commands. The sources give no workaround.
How to tell if you were hit
Check the gateway logs and the node list for nodes that connected and ran commands without a node pairing approval. After the upgrade, look for node.pair.requested events from nodes you do not recognise, and for pending pairing requests that nobody approved. Review past node.invoke calls, especially system.run, made by device-paired nodes. If an agent runs on a developer machine, Beam records its shell commands, which would show host commands that a rogue node triggered.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Device-Paired Node Skips Node Scope Gate → Host RCE.md
Current Maintainer Triage
- Status: open
- Normalized severity: high
- Assessment: Real in shipped v2026.3.28 because a merely device-paired node could expose node commands without node pairing, but high is sufficient given the pairing/setup prerequisites.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.28 - Patched versions:
>= 2026.3.31 - First stable tag containing the fix:
v2026.3.31
Fix Commit(s)
3886b65ef21d02808c1a106fa1f9f69e22f71c32— 2026-03-30T17:29:28+01:00
OpenClaw thanks @AntAISecurityLab for reporting.
Credited to AntAISecurityLab.
Questions
- Which version fixes the node scope gate bypass?
OpenClaw 2026.3.31. Versions up to and including 2026.3.28 are vulnerable. The fix commit is 3886b65, dated 2026-03-30.
- Does the attacker need to be paired?
The attacker needs a device-paired node, which counts as low privileges. They do not need the separate node pairing approval that the fix now demands.
- Why is this rated high, not critical?
The maintainer triage says high is sufficient because of the pairing and setup prerequisites. The CVSS 3.1 score is 8.8.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/security/advisories/GHSA-xj9w-5r6q-x6v4
- https://github.com/openclaw/openclaw/releases/tag/v2026.3.31
- https://nvd.nist.gov/vuln/detail/CVE-2026-41352
- https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-node-scope-gate-bypass
- https://github.com/advisories/GHSA-xj9w-5r6q-x6v4
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
