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

GHSA-63f5-hhc7-cx6p: OpenClaw bootstrap setup codes could be replayed to escalate pending pairing scopes before approval

highCVSS 4.0 8.6

OpenClaw up to and including 2026.3.12 let a bootstrap setup code be verified more than once before a device pairing was approved. A second use could change the pending request to ask for wider scopes, up to operator.admin, which an approver might then grant. Fixed in openclaw 2026.3.13, where setup codes are single-use.

Published Mar 16, 2026 · Analysis Oct 31, 2026

What an attacker can do

Bootstrap setup codes are the authentication step in OpenClaw device pairing. In src/infra/device-bootstrap.ts, a valid code stayed valid after the first check and was bound to the first device it was used with. The code could be verified again while the pairing request was still pending, and each use could add roles and scopes to that request. An attacker holding a code for a low scope, such as operator.read, could replay it to turn the pending request into one for operator.admin (CWE-269).

The attack needs a valid setup code and an approver who finalizes the request. That matches the user interaction in the CVSS vector. The approver sees a pending device, and if they approve it without reading the requested scopes, the device gets admin rights over the OpenClaw instance. Admin operator rights let it control the agent gateway, its channels and its configuration.

Teams that share setup codes in chat, tickets or QR images, or hand them to many people, are at greater risk, since anyone who sees a code before it is approved can attempt the replay. The attack does not give admin on its own. Approval is still required.

Who is affected

The npm package openclaw up to and including 2026.3.12, for instances that pair devices with bootstrap setup codes. Check the version:

npm ls openclaw
openclaw --version

Review any pending pairing requests on instances that run these versions.

openclaw

Ecosystem
npm
Affected
<= 2026.3.12
Fixed in
2026.3.13
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.13:

npm install -g [email protected]

The fix, commit 1803d16, deletes the token record from the bootstrap state file on the first successful verification. Any later attempt, from the same or another device, fails with bootstrap_token_invalid. A regression test checks that a code used for operator.read cannot be replayed to request operator.admin. The sources name no workaround. Until you upgrade, do not leave pairing requests pending, and read the scopes of every request before approving.

How to tell if you were hit

Review the list of paired devices and their granted scopes for operator.admin on devices you do not recognise. Look at pending and recent pairing requests whose scopes are wider than the setup code was meant to give. The sources name no log lines for the attack. After upgrading, a replay fails with bootstrap_token_invalid.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

openclaw versions <= 2026.3.12 allowed bootstrap setup codes to be replayed before approval, which could widen the scopes on a pending device pairing request.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.3.12
  • Fixed version: 2026.3.13

Details

The vulnerable path was bootstrap token verification in src/infra/device-bootstrap.ts. In affected releases, a valid bootstrap setup code could be verified more than once before the pairing request was approved. That allowed a second verification attempt to mutate a pending device pairing and request broader scopes, including escalation from a lower operator scope to operator.admin, before an approver finalized the pairing.

This issue is in scope under OpenClaw's trust model because bootstrap setup codes are an authentication primitive for device pairing and the replay changed the privileges granted to the pending device.

Fix

[email protected] makes bootstrap setup codes single-use. Current code consumes the bootstrap token record on the first successful verification, so replay attempts fail before pending scopes can be widened.

Regression coverage exists in src/infra/device-pairing.test.ts (rejects bootstrap token replay before pending scope escalation can be approved).

Fix Commit(s)

  • 1803d16d5cec970c54b0e1ac46b31b1cbade335c

Thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Is openclaw 2026.3.12 affected by GHSA-63f5-hhc7-cx6p?

Yes. Versions up to and including 2026.3.12 are affected. 2026.3.13 is the fixed version.

Can an attacker get admin without an approver?

No. The replay only widens the scopes on a pending pairing request. Someone with approval rights must still finalize it, so approvers should check the requested scopes.

What changed in the fix?

Setup codes are now single-use. The first successful verification deletes the token record, and later attempts fail with bootstrap_token_invalid.

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