CVE-2026-41333: OpenClaw: Fake DeviceToken Bypasses Shared Auth Rate Limiting
OpenClaw 2026.3.28 and earlier skip shared-secret rate limiting on WebSocket handshakes that include a device token field, even a fake one. An attacker can guess the gateway's shared password without being locked out. Strong shared tokens stay out of reach, so weak passwords are the real risk. Upgrade to openclaw 2026.3.31.
Published Apr 3, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
The gateway accepts WebSocket connections authenticated either with a shared secret or with a per-device token. In resolveConnectAuthState (src/gateway/server/ws-connection/auth-context.ts), the rate limiter was handed to the shared-secret check only when no device-token candidate was present. A handshake that carried any device-token value therefore turned shared-secret brute-force tracking off.
An attacker with network access to the gateway adds a made-up device token to each connection attempt and tries passwords at whatever speed the server allows. Failed guesses are not counted, so no lockout happens. If the shared secret is a short or guessable password, the attacker eventually gets in and has the access that secret grants to the gateway. The maintainers rate it low: a long random shared token cannot realistically be brute-forced, and the CVSS vector reflects high attack complexity and limited confidentiality impact.
Who is affected
The npm package openclaw at 2026.3.28 and earlier, on gateways that accept shared-password or shared-token authentication over WebSocket. Version 2026.3.31 is the first stable release with the fix. Deployments that use a long random shared token are at low practical risk.
Check your install:
npm ls -g openclaw
openclaw --versionAlso check how strong your gateway's shared secret is and whether the gateway port is reachable from untrusted networks.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.28
- Fixed in
- 2026.3.31
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.31 or later.
npm install -g [email protected]Commit af0c0862 passes the rate limiter to the shared-secret check whenever a shared secret is provided, regardless of device-token fields. A successful device-token login now also resets the shared-secret limiter scope. Device-token-only handshakes never consult the shared-secret limiter. The advisory gives no workaround. If you ran a weak shared password on an exposed gateway, rotate it to a long random value.
How to tell if you were hit
Look in gateway logs for many failed shared-secret authentication attempts from one client address, especially handshakes that also carry a device token that does not match any paired device. On affected versions these failures were not rate limited, so the absence of lockout messages during a burst is itself a sign. If you see such a burst and your shared secret is weak, rotate it and review the sessions that connected afterwards.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Fake DeviceToken Bypasses Shared Auth Rate Limiting
Current Maintainer Triage
- Status: narrow
- Normalized severity: low
- Assessment: Real in shipped mixed WS auth flow, but practical risk is mostly weak shared-password deployments since strong shared tokens remain non-bruteforceable.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.28 - Patched versions:
>= 2026.3.31 - First stable tag containing the fix:
v2026.3.31
Fix Commit(s)
af0c0862f22ca4492406a3103d05e3628f94cbe9— 2026-03-31T09:08:57+09:00
Release Process Note
- The fix is already present in released version
2026.3.31.
OpenClaw thanks @kexinoh of Tencent zhuque Lab (https://github.com/Tencent/AI-Infra-Guard) for reporting.
Credited to kexinoh.
Questions
- Is OpenClaw 2026.3.28 affected by CVE-2026-41333?
Yes. Versions up to and including 2026.3.28 are vulnerable. The patched version is 2026.3.31.
- Does the attacker need a valid device token?
No. The flaw is that any device-token candidate, including a fake one, disables shared-secret rate limiting for that handshake.
- Is it exploited in the wild?
No source I read says so, and the entry has no CISA KEV flag. The EPSS score is about 0.4%.
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 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
