CVE-2026-41378: OpenClaw: Paired node escalates to gateway RCE via unrestricted node.event agent dispatch
OpenClaw up to 2026.3.28 lets a paired node client use node.event agent dispatch to reach far more gateway-side tools than its own node RPCs allow. That turns a paired node foothold into code execution on the gateway. Upgrade to 2026.3.31.
Published Apr 3, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
A client with the node role can send node.event messages, including agent.request, which start an agent run on the gateway. In v2026.3.28 that run was not limited to a narrow tool set, so it had broader tool access than the node's own RPC calls. A malicious paired node could therefore have the gateway agent use tools such as exec, read and write, and run commands on the gateway host.
The maintainers call it narrow and rate it high, not critical, because the attacker must already control a trusted paired node. The CVSS vector agrees: network access, low privileges, no user interaction. A compromised or rogue node is the realistic starting point. The result is a jump from a node to the gateway host, with the gateway's files, credentials and connected channels.
The fix commit shows the surrounding trust issue. Data from nodes, such as notification text, was treated as trusted system events, so it could carry text that looked like system instructions to the agent.
Who is affected
The npm package openclaw, versions 2026.3.28 and earlier. Deployments with paired nodes connecting to a gateway are the exposed ones. A gateway with no nodes has little exposure from this flaw. 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 commit adds a tool allowlist for runs that originate from a node. Only canvas, image, pdf, tts, web_fetch and web_search remain, and exec, read, write, edit, message, sessions_send and subagents are excluded. It also marks node notification events as untrusted, so the agent sees them prefixed System (untrusted), and sanitizes system-style tags inside them. The sources list no workaround.
How to tell if you were hit
Review the gateway's agent runs started by node.event or agent.request messages, and check whether they used exec, read or write tools. Look for paired nodes you do not recognise, and for node notification text containing strings like System: or [System Message]. Check the gateway host for commands run by the OpenClaw process at times that match node activity. Beam records agent shell commands and file access, which would show what the gateway agent ran.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Paired node escalates to gateway RCE via unrestricted node.event agent dispatch
Current Maintainer Triage
- Status: narrow
- Normalized severity: high
- Assessment: v2026.3.28 still lets paired role=node clients drive node.event agent.request into broader gateway-side tool access than node RPCs, but critical is overstated because a trusted paired node foothold is already required.
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)
a77928b1087e90f2a8903f8e5aca6dec9237ac62— 2026-03-30T14:22:15+01:00
OpenClaw thanks @AntAISecurityLab for reporting.
Credited to AntAISecurityLab.
Questions
- Which OpenClaw version fixes the node.event escalation?
2026.3.31. Versions up to and including 2026.3.28 are affected. The fix commit is a77928b, dated 2026-03-30.
- Does the attacker need a paired node?
Yes. The maintainers say critical is overstated because a trusted paired node foothold is already required. The CVSS vector lists low privileges.
- Which tools can a node-originated run use after the fix?
Only canvas, image, pdf, tts, web_fetch and web_search. The fix excludes exec, read, write, edit, message, sessions_send and subagents.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/security/advisories/GHSA-gjm7-hw8f-73rq
- https://github.com/openclaw/openclaw/releases/tag/v2026.3.31
- https://nvd.nist.gov/vuln/detail/CVE-2026-41378
- https://www.vulncheck.com/advisories/openclaw-privilege-escalation-to-remote-code-execution-via-unrestricted-node-event-agent-dispatch
- https://github.com/advisories/GHSA-gjm7-hw8f-73rq
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
