CVE-2026-53821: OpenClaw WebSocket Authorization Bypass (CVSS 8.8)
OpenClaw before version 2026.5.18 has a critical authorization flaw in its WebSocket implementation. The vulnerability allows unpaired or restricted Control UI clients to claim elevated operator.admin permissions without proper server validation. Once a WebSocket connection is established, an attacker can execute administrative Gateway RPCs (remote procedure calls) that should only be available to fully authorized administrators. The core issue is that the server accepts client-declared permission scopes before verifying the client's actual binding status or trusted-proxy authorization.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-862
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-12 / 2026-06-17
NVD description (verbatim)
OpenClaw before 2026.5.18 accepts WebSocket client-declared operator scopes before binding to server-approved pairing or trusted-proxy authorization baseline. Unpaired or restricted trusted-proxy Control UI clients can obtain cached operator.admin authority on live WebSocket connections to execute admin-gated Gateway RPCs.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-53821 is an authorization bypass in OpenClaw's WebSocket protocol handler affecting versions prior to 2026.5.18. The vulnerability stems from a scope-validation sequencing flaw: the server processes and caches operator.admin authority from client-declared scopes before enforcing server-side pairing or trusted-proxy authorization baseline checks. An attacker controlling an unpaired or otherwise restricted Control UI client can inject elevated scope claims into WebSocket negotiation, and these claims are accepted and cached by the server. Subsequent admin-gated Gateway RPC requests from the same connection execute with cached admin privileges, bypassing intended access controls. The issue is classified under CWE-862 (Missing Authorization).
Business impact
This vulnerability enables privilege escalation from a restricted or unpaired client to full administrative control over OpenClaw Gateway operations. An attacker with network access to an OpenClaw instance and knowledge of WebSocket endpoints can bypass authentication and authorization controls to perform gateway administration tasks—such as modifying routes, altering configurations, or potentially accessing sensitive data. The HIGH CVSS score (8.8) reflects the combination of high confidentiality, integrity, and availability impact. Organizations relying on OpenClaw for API gateway or service mesh control face risk of unauthorized administrative access and potential cascade failures across dependent systems.
Affected systems
OpenClaw versions before 2026.5.18 are affected. The vulnerability requires a network connection to the WebSocket endpoint and applies to any deployment where unpaired Control UI clients or restricted trusted-proxy clients exist. Environments using OpenClaw in multi-tenant or role-segregated deployment models are particularly exposed, as the vulnerability erases the boundary between restricted and admin-level access.
Exploitability
This vulnerability has a low complexity attack vector (AV:N/AC:L) and requires only that the attacker be authenticated at some level (PR:L). No user interaction is required. An attacker with valid credentials—even minimal ones—can exploit this vulnerability to escalate to admin scope. The attack occurs at the protocol level during WebSocket handshake or early in the connection lifecycle, making it straightforward to exploit once the attacker has network access and any valid account or client identity.
Remediation
Upgrade OpenClaw to version 2026.5.18 or later immediately. This version includes corrected scope-validation sequencing that enforces server-side pairing and trusted-proxy authorization checks before accepting or caching any client-declared scopes. Organizations unable to patch immediately should implement network segmentation to restrict access to OpenClaw WebSocket endpoints, enforce mutual TLS (mTLS) authentication with strict certificate pinning, and monitor WebSocket connection logs for unexpected scope claims.
Patch guidance
Apply OpenClaw update 2026.5.18 or later. Verify the patch by confirming the version string in the OpenClaw binary or management UI. The patch changes the WebSocket handshake logic to validate client authorization status against the server's pairing registry and trusted-proxy configuration before processing any scope claims. Test the update in a non-production environment first, as WebSocket connection behavior may change for legacy unpaired clients—ensure all production clients are properly paired or registered as trusted proxies before full rollout.
Detection guidance
Monitor WebSocket connections to OpenClaw for the following indicators: (1) WebSocket frames containing operator.admin scope claims from clients not registered in the pairing registry or trusted-proxy allowlist; (2) sudden elevation of scope claims mid-connection without accompanying re-authentication or pairing events; (3) Gateway RPC calls with admin-level operations originating from unpaired or restricted client identities. Enable detailed WebSocket logging if available and correlate with access control logs to identify unauthorized privilege escalation attempts. Check for any WebSocket connections that bypass standard TLS certificate validation or mTLS mutual authentication.
Why prioritize this
This vulnerability merits immediate remediation due to its HIGH severity, straightforward exploitability (low complexity, minimal privilege requirement), and direct impact on administrative access controls. It affects the authentication and authorization layer itself, meaning standard application-level controls do not compensate. Any attacker with network access and minimal credentials can obtain full gateway administration. There is no known public exploit at this time, but the technical simplicity of the flaw suggests rapid weaponization is likely if left unpatched in production environments.
Risk score, explained
The CVSS 3.1 score of 8.8 (HIGH) reflects a network-accessible vulnerability that compromises confidentiality, integrity, and availability equally. The low attack complexity and low privilege requirement mean an attacker does not need special circumstances or significant social engineering to exploit it. The lack of user interaction (UI:N) makes the attack purely automated and reliable. No scope change (S:U) means the impact is limited to the vulnerable component itself, which in this case is the entire Gateway RPC execution layer—not a minor subsystem. The score appropriately prioritizes this as a critical authorization bypass.
Frequently asked questions
Who can exploit this vulnerability?
Any attacker with network access to OpenClaw's WebSocket endpoint and valid credentials (even minimal ones) can exploit it. The vulnerability does not require sophisticated tools, advanced privileges, or user interaction—just knowledge of the WebSocket URI and the ability to craft a malicious client connection.
Does the patch require a restart or downtime?
In most cases, upgrading to 2026.5.18 requires restarting the OpenClaw service. Coordinate with your deployment to schedule the update during a maintenance window. Verify test lab behavior first, as the patch changes WebSocket handshake semantics and may affect connected clients that are not properly paired.
Can this vulnerability be exploited without direct network access to OpenClaw?
No. The vulnerability requires network-level connectivity to the WebSocket endpoint. If OpenClaw is only accessible via a VPN, private network, or API gateway with strict authentication, the attack surface is reduced. However, if any unpaired or untrusted internal client has network access, the vulnerability remains exploitable.
What is the difference between operator.admin scope and actual admin role?
Operator.admin is a scope claim—a permission level declared in the WebSocket handshake. Actual admin role is determined by the server's pairing registry and trusted-proxy configuration. The bug allows a client to claim operator.admin scope without having the actual authorized role. The server mistakenly trusts the claim instead of verifying the role first.
This analysis is based on the CVE record published on 2026-06-12 and modified on 2026-06-17. SEC.co does not conduct independent testing or verification of patches. Organizations should verify patch applicability, compatibility, and effectiveness in their own test environments before production deployment. The absence of a CVE entry in CISA's Known Exploited Vulnerabilities (KEV) list does not indicate the vulnerability is unexploited in the wild—it indicates it has not yet been formally documented as actively exploited by government sources. Consult the OpenClaw vendor advisory and release notes for definitive patch instructions, compatibility matrices, and rollback procedures. This summary is provided for informational purposes and does not constitute professional security advice. Engage qualified security personnel for vulnerability assessment and remediation planning specific to your environment. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-32905HIGHOpenClaw Device-Pair Authorization Bypass (CVSS 8.3)
- CVE-2026-35630HIGHOpenClaw Authorization Bypass in QQBot Approval Buttons
- CVE-2026-53816HIGHOpenClaw Event Provenance Validation Bypass (CVSS 7.2)
- CVE-2026-53866HIGHOpenClaw Shell Inline-Command Allowlist Bypass (CVSS 8.1)
- CVE-2026-53815MEDIUMOpenClaw Authorization Bypass in Channel Message Read
- CVE-2026-53818MEDIUMOpenClaw MCP Loopback Authorization Bypass (CVSS 6.6)
- CVE-2026-53820MEDIUMOpenClaw MCP Denylist Bypass Allows Privilege Escalation
- CVE-2026-53844MEDIUMOpenClaw Session Visibility Bypass in Shared Memory Search