CVE-2026-42422 — Vulnerability in openclaw — CVE Details
OpenClaw `device.token.rotate` mints tokens for unapproved roles, bypassing device role-upgrade pairing
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.54%). Schedule for your next planned update.
Does your project use an affected openclaw version?
Paste your package-lock.json to check it for CVE-2026-42422 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published April 9, 2026 (231 days ago).
- Last revised May 6, 2026 — 26 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install openclaw@2026.4.8
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| openclaw npm · Affected: All versions | 2026.4.8 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-863Incorrect AuthorizationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/openclaw/openclaw/security/advisories/GHSA-whf9-3hcx-gq54WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42422ADVISORY
- https://github.com/openclaw/openclaw/commit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5WEB
- https://github.com/openclaw/openclawPACKAGE
- https://www.vulncheck.com/advisories/openclaw-role-bypass-in-device-token-rotate-functionWEB
Frequently Asked Questions
- What is CVE-2026-42422?
- OpenClaw `device.token.rotate` mints tokens for unapproved roles, bypassing device role-upgrade pairing. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-42422?
- CVE-2026-42422 affects openclaw. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-42422 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 38.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-28363CRITICAL
OpenClaw is vulnerable to validation bypass through GNU long-option abbreviations in allowlist mode
- CVE-2026-42434HIGH
OpenClaw: Sandboxed agents could escape exec routing via host=node override
- CVE-2026-53811HIGH
OpenClaw: Matrix allowFrom could bind to mutable display names
- CVE-2026-53843HIGH
OpenClaw: Pairing-scoped device session could restore revoked node token authority
- CVE-2026-28391HIGH
OpenClaw's Windows cmd.exe parsing may bypass exec allowlist/approval gating
- CVE-2026-53821HIGH
OpenClaw: Trusted-proxy Control UI WebSocket accepted client-declared scopes before pairing
- CVE-2026-35669HIGH
OpenClaw: Gateway Plugin HTTP Auth Grants Unrestricted operator.admin Runtime Scope to All Callers
- CVE-2026-43534MEDIUM
OpenClaw: Agent hook events could enqueue trusted system events from unsanitized external input