Skip to main content
EPSS 0.3%top 77%

Openclaw cli: OpenClaw: Gateway `device.token.rotate` does not terminate active WebSocket sessions after credential rotation (CVE-2026-41356)

0
Medium
Published: 08/13/2026 (08/13/2026, 17:21:32 UTC)
Source: GCVE Database
Product: openclaw-cli

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
>=2026.1.29 <2026.3.31

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

AILast updated: 10/04/2026, 12:49:11 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses