AgentbeamBeta
AI agent vulnerability · OpenClaw

GHSA-7h7g-x2px-94hj: OpenClaw: Pairing setup codes exposed long-lived shared gateway credentials instead of short-lived bootstrap tokens

mediumCVSS 4.0 6.9

In OpenClaw 2026.3.11 and earlier, the /pair command and openclaw qr put the long-lived shared gateway token or password into the setup code. Anyone who recovers a setup code can authenticate to the gateway. Fixed in 2026.3.12.

Published Mar 13, 2026 · Analysis Nov 7, 2026

What an attacker can do

The /pair command and openclaw qr embedded the configured shared gateway credential directly in the setup payload. A setup code is meant to be used once for pairing a device, but it carried a credential that stays valid. The advisory lists chat history, logs, screenshots and copied QR payloads as places the code can be recovered from (CWE-532).

The attacker needs only the code. No account is described. The CVSS 4.0 score is 6.9, with low confidentiality impact. No CVE is assigned.

A leaked code can be reused to authenticate to the shared gateway outside the pairing flow. So a pasted screenshot or a shared chat log can act as a standing key to the gateway.

Who is affected

The npm package openclaw at 2026.3.11 or earlier. Check:

npm ls openclaw

Setup codes created earlier by /pair or openclaw qr may sit in chats and logs.

openclaw

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

How to fix it

Upgrade to openclaw 2026.3.12. Setup codes now carry short-lived bootstrap tokens, valid only for the initial device bootstrap exchange.

The advisory also says to rotate any shared gateway credentials that may have appeared in setup codes. It lists no other workaround.

How to tell if you were hit

Search chat history, logs and shared screenshots for old setup codes and QR payloads. Review gateway authentication logs for logins using the shared credential from devices or addresses you do not recognize.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

OpenClaw pairing setup codes generated by /pair and openclaw qr embedded the configured shared gateway token or password directly in the setup payload. Anyone who obtained that code from chat history, logs, screenshots, or copied QR payloads could recover the long-lived shared credential.

Impact

An attacker with access to a leaked setup code could reuse the shared gateway credential outside the intended one-time pairing flow.

Affected versions

openclaw <= 2026.3.11

Patch

Fixed in openclaw 2026.3.12. Setup codes now carry short-lived bootstrap tokens that are only valid for the initial device bootstrap exchange. Update to 2026.3.12 or later and rotate any previously exposed shared gateway credentials if setup codes may have leaked.

Credited to lintsinghua, woreksami.

Questions

Do I need to rotate the gateway password after upgrading?

The advisory says to rotate shared gateway credentials that may have been exposed in setup codes.

What changed in the setup code?

It now carries a short-lived bootstrap token valid only for the initial device bootstrap exchange.

Which versions are affected?

2026.3.11 and earlier. Version 2026.3.12 fixes it.

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