NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-34503: OpenClaw's device removal and token revocation do not terminate active WebSocket sessions

highCVSS 4.0 8.6 · 3.1 7.5GHSA-2pr2-hcv6-7gwv

In OpenClaw up to 2026.3.24, removing a device or revoking its token updates stored credentials but leaves its already-authenticated WebSocket sessions open. A revoked device keeps working until it reconnects. Fixed in 2026.3.28, which closes those sessions.

Published Mar 31, 2026 · Updated Apr 6, 2026 · Analysis Oct 31, 2026

What an attacker can do

The gateway handlers device.pair.remove and device.token.revoke in src/gateway/server-methods/devices.ts change the stored pairing and token records. They did not touch connections that were already authenticated. A WebSocket opened before the revocation stayed valid, with the same role and scopes, for as long as it stayed connected.

The attacker is a device or holder of a stolen token that the operator has just revoked, for example after a suspected compromise. If they hold a live session, they keep reading and sending through the gateway while the operator believes access is gone. A long-lived idle-looking connection can last indefinitely. The practical effect is that incident response fails: removing the device does not end the intrusion until the gateway restarts or the client drops. CWE-613, insufficient session expiration.

Who is affected

npm package openclaw, versions up to and including 2026.3.24. Every deployment with paired devices and a gateway is in scope. Check the version:

npm ls openclaw

Any revocation you performed on an affected version may not have ended active sessions.

openclaw

Ecosystem
npm
Affected
<= 2026.3.24
Fixed in
2026.3.28
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.28 or later:

npm install [email protected]

Commit 7a801cc451 adds disconnectClientsForDevice. After a successful removal, all of the device's sessions are closed with code 4001 and reason device removed. After a token revocation, sessions with the revoked role are closed. On older versions, restart the gateway after revoking a device to drop live sessions.

How to tell if you were hit

In gateway logs, look for connections from a device ID that continue after a device.pair.remove or device.token.revoke entry. Check the list of connected clients for removed devices. After patching, expect close code 4001 with the reason device removed when you revoke. The advisory gives no other indicators.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Removing a device or revoking its token updated stored credentials but did not disconnect already-authenticated WebSocket sessions.

Impact

A revoked device could continue using its existing live session until reconnect, extending access beyond credential removal.

Affected Component

src/gateway/server-methods/devices.ts, src/gateway/server.impl.ts

Fixed Versions

  • Affected: <= 2026.3.24
  • Patched: >= 2026.3.28
  • Latest stable 2026.3.28 contains the fix.

Fix

Fixed by commit 7a801cc451 (Gateway: disconnect revoked device sessions).

OpenClaw thanks @AntAISecurityLab for reporting.

Credited to AntAISecurityLab.

Questions

Does revoking a token on OpenClaw 2026.3.24 end the device's session?

No. Stored credentials change, but an already-open WebSocket session keeps working until the client reconnects.

Which version fixes CVE-2026-34503?

openclaw 2026.3.28. Versions up to and including 2026.3.24 are affected.

Is there a workaround on old versions?

The advisory lists none. Restarting the gateway drops every live connection, though the sources do not say so. Upgrading is the real fix.

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