NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-41378: OpenClaw: Paired node escalates to gateway RCE via unrestricted node.event agent dispatch

highCVSS 4.0 8.7 · 3.1 8.8GHSA-gjm7-hw8f-73rq

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 --version

openclaw

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

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 entries