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

CVE-2026-41386: OpenClaw: Unbound bootstrap setup codes allow privilege escalation during pairing

highCVSS 4.0 8.6 · 3.1 9.8GHSA-gg9v-mgcp-v6m7

OpenClaw up to 2026.3.13-1 issued bootstrap setup codes that were not bound to a device role or scopes. Whoever redeems a code first can ask for broader privileges than the code was meant to grant during pairing. Fixed in 2026.3.22.

Published Apr 3, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026

What an attacker can do

The /pair flow gives a new device a bootstrap token, often as a QR setup code. The token is single-use, but the old code did not record which role and scopes it was issued for. When it was redeemed, the verification step accepted whatever role and scopes the redeeming device asked for.

The code intended for a node therefore could be used to pair as a more privileged client, such as an operator with operator scopes. Anyone who sees or intercepts a setup code before the intended device uses it can take the first use and escalate. That could be a shared screenshot of the QR code, a chat message or a person on the same network, which fits the adjacent network vector in the CVSS 4.0 score.

The maintainers rate it high, and the CVSS 3.1 score is 9.8. A paired operator device controls the OpenClaw gateway and the agents behind it.

Who is affected

The npm package openclaw, versions 2026.3.13-1 and earlier. Installs that use the /pair setup code or QR flow to add devices are the exposed ones. Check the version:

npm ls openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
<= 2026.3.13-1
Fixed in
2026.3.22
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.22 or later; the first stable tag with the fix is v2026.3.22.

npm install -g [email protected]

The fix stores a role and scope profile on each setup code. Codes issued through the standard flow are bound to the node role with no scopes. Redemption fails closed if the requested role or scopes differ, and legacy codes with no bound profile are rejected, so unused old codes stop working. The sources list no workaround. Do not share setup codes in screenshots or chat.

How to tell if you were hit

Review the paired device list for devices you did not set up, especially ones with operator roles or scopes. Compare each device's role with what you intended when you issued the setup code. Check pairing logs for a setup code redeemed by an address other than the target device. After upgrading, remove unknown devices and issue fresh codes. Beam records agent shell commands on the gateway host, which helps show what a rogue operator device did.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Bootstrap setup codes were not bound to the intended device role and scopes, allowing first-use privilege escalation during pairing.

Current Maintainer Triage

  • Status: open
  • Normalized severity: high
  • Assessment: Real first-use bootstrap privilege-escalation bug fixed and shipped in v2026.3.22+, so keep open for publication with current severity.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published npm version: 2026.3.31
  • Vulnerable version range: <=2026.3.13-1
  • Patched versions: >= 2026.3.22
  • First stable tag containing the fix: v2026.3.22

Fix Commit(s)

  • a600c72ed7d0045a27f58bf031d2b36ecb0141c9 — 2026-03-22T23:57:15-07:00

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Which OpenClaw version fixes the bootstrap code escalation?

2026.3.22. Versions up to and including 2026.3.13-1 are affected. The fix commit is a600c72.

What changes for setup codes issued before the upgrade?

Legacy codes with no bound role or scopes are rejected after the fix, so you need to issue new codes.

Does the attacker need an account?

No. They need a setup code that has not been redeemed yet, and they must use it first. The CVSS vector sets privileges required to none.

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