CVE-2026-42422: OpenClaw `device.token.rotate` mints tokens for unapproved roles, bypassing device role-upgrade pairing
OpenClaw, the open-source AI assistant, lets a caller of device.token.rotate mint or keep device tokens for roles and scopes that never went through pairing approval. That skips the device role-upgrade check. The openclaw npm package before 2026.4.8 is affected, and the advisory lists 2026.04.01 and below. Upgrade to 2026.4.8.
Published Apr 9, 2026 · Updated May 6, 2026 · Analysis Nov 6, 2026
What an attacker can do
OpenClaw pairs devices to a gateway, and upgrading a device to a higher role is meant to need an approval step. The device.token.rotate function issues a fresh token for a device. In affected versions it could mint or preserve roles and scopes that had not been approved through that pairing flow. The weakness is CWE-863, incorrect authorization.
A paired device with limited rights can therefore rotate its token and come out with more privileges than the owner granted. VulnCheck describes the outcome as skipping the role-upgrade pairing process. Neither source lists which roles or scopes are reachable, or how the caller reaches the function.
The ratings differ by source. VulnCheck gives CVSS 4.0 of 7.7 with low privileges and high impact on confidentiality, integrity and availability. The vector in our data scores it 5.9. The advisory scopes the issue to OpenClaw as a user-controlled local assistant, not a multi-tenant service. For a shared gateway with several paired devices, treat it as a privilege escalation from device to a higher role.
Who is affected
The openclaw npm package before 2026.4.8. The advisory text lists 2026.04.01 and below, and the package data lists everything below 2026.4.8 as vulnerable. Gateways with paired devices are relevant. Check:
npm ls openclawopenclaw
- Ecosystem
- npm
- Affected
- < 2026.4.8
- Fixed in
- 2026.4.8
- Check
npm ls openclaw
How to fix it
Upgrade openclaw to 2026.4.8 or later.
npm install [email protected]The fix is commit d7c3210cd6f5 on main, which the advisory says was checked with regression tests. No workaround is given. After upgrading, review the roles and scopes of each paired device and revoke any you did not approve.
How to tell if you were hit
Review the paired device list for roles and scopes higher than you approved. Check gateway logs for device.token.rotate calls, especially ones followed by actions that need a higher role. The sources give no log line. Beam records agent MCP tool calls and shell commands, which helps if a device with raised rights was then used to run actions.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
OpenClaw device.token.rotate mints tokens for unapproved roles, bypassing device role-upgrade pairing.
Device token rotation could mint or preserve roles/scopes that had not gone through the intended pairing approval.
OpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= v2026.04.01 - Patched versions:
2026.4.8
Fix
The issue was fixed on main and is available in the patched npm version listed above. The verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5.
Verification
The fix was re-checked against main before publication, including targeted regression tests for the affected security boundary.
Credits
Thanks @nicky-cc of Tencent zhuque Lab (https://github.com/Tencent/AI-Infra-Guard) for reporting.
Credited to nicky-cc.
Questions
- What does device.token.rotate do wrong?
It could mint or keep roles and scopes that had not gone through the device role-upgrade pairing approval.
- How severe is it?
VulnCheck rates it 7.7 high under CVSS 4.0, while our data vector scores 5.9. Both agree it needs low privileges and no user interaction.
- Which version fixes CVE-2026-42422?
openclaw 2026.4.8. VulnCheck infers this from the affected range and the patch commit d7c3210.
- What should I check after upgrading?
Review each paired device role and scope and revoke any you did not approve, since a token minted before the fix may carry extra rights.
References
Read for this analysis:
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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
