Openclaw cli: OpenClaw: Gateway `device.token.rotate` does not terminate active WebSocket sessions after credential rotation (CVE-2026-41356)
Description
The OpenClaw CLI has a vulnerability where the gateway command `device.token.rotate` does not terminate active WebSocket sessions after device tokens are rotated. This creates a post-compromise revocation gap, allowing existing authenticated WebSocket sessions to remain active despite credential rotation. The issue affects versions from 2026.1.29 up to but not including 2026.3.31. The vulnerability has a medium severity with a CVSS score of 5.4. A fix has been released in version 2026.3.31.
CVSS v3.1
Score 5.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-41356 describes a vulnerability in the OpenClaw CLI package where the gateway command `device.token.rotate` fails to disconnect active WebSocket sessions after device tokens are rotated. This means that even after credentials are rotated, existing authenticated WebSocket sessions remain active, which can be exploited as a post-compromise revocation gap. The vulnerability affects versions >=2026.1.29 and <2026.3.31. The issue was fixed in version 2026.3.31 by commit 91f7a6b0fd67b703897e6e307762d471ca09333d.
Potential Impact
An attacker or compromised entity could maintain active WebSocket sessions even after device tokens have been rotated, potentially allowing continued access despite credential revocation. The impact is limited to a post-compromise scenario and does not directly allow initial unauthorized access. The CVSS score of 5.4 reflects a medium severity with low confidentiality and integrity impact and no availability impact.
Mitigation Recommendations
Users should upgrade to OpenClaw CLI version 2026.3.31 or later, where the issue has been fixed. The fix ensures that active WebSocket sessions are terminated upon device token rotation, closing the post-compromise revocation gap. No additional mitigation is required beyond applying the official patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-41356
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac245a312601ec6a3165d90
Added to database: 10/04/2026, 12:25:07 UTC
Last enriched: 10/04/2026, 12:49:11 UTC
Last updated: 10/04/2026, 16:08:38 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.