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

GHSA-4jpw-hj22-2xmc: OpenClaw: Pairing-scoped device tokens could mint `operator.admin` and reach node RCE

criticalCVSS 3.1 9.9

In OpenClaw before 2026.3.11, a caller that held only the operator.pairing scope could call device.token.rotate and mint a broader token for an already paired device. If that device had been approved for operator.admin, the caller got an admin token. Where node hosts expose system.run, this reaches remote code execution on the node. Fixed in 2026.3.11.

Published Mar 13, 2026 · Analysis Oct 31, 2026

What an attacker can do

The device.token.rotate method took the target scopes from the caller. It checked them against what the target device was approved for, but did not limit the new token to the caller's own scopes. A pairing-scoped caller could therefore pick a paired administrative device and rotate its token with admin scopes, then use the token (CWE-269).

The attacker needs an account with operator.pairing, which is what the low-privilege requirement in the CVSS vector reflects, and network access to the gateway. The result is unauthorized gateway-admin access even with no nodes connected.

On deployments with connected node hosts or companion apps that expose system.run, the admin token can change node execution approvals and run commands on the node. That is real remote code execution on machines outside the gateway, which explains the changed-scope, 9.9 rating.

The advisory's text lists versions up to 2026.3.8 as affected, while the package data covers everything below 2026.3.11. Treat any version before 2026.3.11 as exposed.

Who is affected

The npm package openclaw before 2026.3.11. The advisory body names <= 2026.3.8 and the package data says < 2026.3.11, so use 2026.3.11 as the safe line. Check the version:

npm ls openclaw
openclaw --version

Deployments are most at risk if they have paired devices approved for operator.admin, hand out operator.pairing to others, or run node hosts with system.run.

openclaw

Ecosystem
npm
Affected
< 2026.3.11
Fixed in
2026.3.11
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.11 or later:

npm install -g [email protected]

OpenClaw now enforces caller-scope subsetting in device.token.rotate: a caller cannot mint a device token broader than the scopes it already holds. The advisory lists upgrading as the only workaround. Afterwards, rotate tokens of admin-approved devices, and review which accounts hold operator.pairing.

How to tell if you were hit

Look in gateway logs for device.token.rotate calls made by accounts with only operator.pairing, especially those that target admin-approved devices. Check for admin actions from tokens that appeared at the time. On node hosts, review changes to execution approvals and any system.run activity you did not expect.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In affected versions of openclaw, a caller holding only operator.pairing could use device.token.rotate to mint a new token with broader scopes for an already paired device. If the target device was approved for operator.admin, the attacker could obtain an administrative token without already holding administrative scope.

Impact

This is a critical authorization flaw. On deployments with connected node hosts or companion apps that expose system.run, the escalated token could then modify node execution approvals and reach real remote code execution on the node. Even without nodes, the flaw still granted unauthorized gateway-admin access.

Affected Packages and Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.3.8
  • Fixed in: 2026.3.11

Technical Details

device.token.rotate accepted caller-supplied target scopes and validated them against the target device's approved scopes, but it did not constrain the newly minted scopes to the caller's own current scope set. That allowed a pairing-scoped caller to mint a broader token for an already paired administrative device.

Fix

OpenClaw now enforces caller-scope subsetting in device.token.rotate, preventing callers from minting device tokens broader than the scopes they already hold. The fix shipped in [email protected].

Workarounds

Upgrade to 2026.3.11 or later.

Credited to tdjackey.

Questions

Which OpenClaw version fixes this device token flaw?

2026.3.11. The package data lists versions before it as vulnerable, though the advisory text names <= 2026.3.8.

Does it need an account?

Yes. The caller must hold the operator.pairing scope. That is the only privilege needed to mint an admin token for a paired admin device.

Can it lead to code execution?

Yes, where connected node hosts or companion apps expose system.run. The escalated token can change node execution approvals. Without nodes it still gives gateway-admin access.

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