CVE-2026-22172: OpenClaw: WebSocket scope self-elevation grants admin
CRITICALCVE-2026-22172 is a missing-authorization flaw in OpenClaw's WebSocket connect path: a client authenticated with only a shared token or password can simply declare elevated scopes such as operator.admin, and the server accepts them without binding. That turns any low-privilege credential into full gateway control, and the CVSS 9.9 with scope change reflects the exposure of whatever the agent can reach (tools, credentials, connected inboxes and hosts). Near-term exploitation pressure looks moderate rather than urgent: EPSS is 0.56% (top 55%), the CVE is not in CISA KEV, there is no public exploit or Nuclei template, and CISA SSVC says TRACK. Still, the flaw is trivial to abuse once someone holds any valid shared secret, and OpenClaw has already been targeted in the wild (AIID #1368 skills ecosystem abuse, AIID #1646 agent-driven government intrusions). Upgrade to OpenClaw 2026.3.12 or later, rotate all shared tokens and passwords, and review gateway logs for admin-only operations performed by non-admin identities.
What is the risk?
Rated critical (CVSS 3.1 9.9: network, low complexity, low privileges, no user interaction, scope changed, high C/I/A). Exploitation requires a valid shared-token or password connection, so the barrier is possession of any low-privilege credential, which is often widely distributed to teams, integrations or leaked in configs. Current exploitation likelihood is low-to-moderate (EPSS 0.00561, top 55%; not in KEV; no public PoC or scanner template; SSVC TRACK). Blast radius for direct dependents is small (3 downstream dependents), but impact per deployment is high because the gateway fronts agent tools and credentials. Confidence: HIGH on the flaw description (vendor advisory GHSA-rqpp-rjj8-7wv8 and VulnCheck), MEDIUM on real-world exploitation likelihood given the absence of exploit telemetry.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| OpenClaw | pip | — | No patch |
Do you use OpenClaw? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step1) Upgrade OpenClaw to 2026.3.12 or later (per vendor advisory GHSA-rqpp-rjj8-7wv8). 2) Rotate all shared tokens and passwords used for gateway WebSocket connections, assuming any holder could have escalated. 3) Restrict gateway network exposure: bind to localhost or private networks, place behind VPN or an authenticating reverse proxy, and avoid direct internet exposure. 4) Prefer per-user credentials with server-side scope assignment over shared secrets where supported. 5) Detection: audit gateway logs for WebSocket connects declaring operator.admin or other elevated scopes from identities that should not hold them, and for admin-only operations (config changes, tool or skill installs, session control) from unexpected sources. 6) Review agent tool permissions and connected credentials, applying least privilege so a compromised gateway has limited reach.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-22172?
CVE-2026-22172 is a missing-authorization flaw in OpenClaw's WebSocket connect path: a client authenticated with only a shared token or password can simply declare elevated scopes such as operator.admin, and the server accepts them without binding. That turns any low-privilege credential into full gateway control, and the CVSS 9.9 with scope change reflects the exposure of whatever the agent can reach (tools, credentials, connected inboxes and hosts). Near-term exploitation pressure looks moderate rather than urgent: EPSS is 0.56% (top 55%), the CVE is not in CISA KEV, there is no public exploit or Nuclei template, and CISA SSVC says TRACK. Still, the flaw is trivial to abuse once someone holds any valid shared secret, and OpenClaw has already been targeted in the wild (AIID #1368 skills ecosystem abuse, AIID #1646 agent-driven government intrusions). Upgrade to OpenClaw 2026.3.12 or later, rotate all shared tokens and passwords, and review gateway logs for admin-only operations performed by non-admin identities.
Is CVE-2026-22172 actively exploited?
No confirmed active exploitation of CVE-2026-22172 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-22172?
1) Upgrade OpenClaw to 2026.3.12 or later (per vendor advisory GHSA-rqpp-rjj8-7wv8). 2) Rotate all shared tokens and passwords used for gateway WebSocket connections, assuming any holder could have escalated. 3) Restrict gateway network exposure: bind to localhost or private networks, place behind VPN or an authenticating reverse proxy, and avoid direct internet exposure. 4) Prefer per-user credentials with server-side scope assignment over shared secrets where supported. 5) Detection: audit gateway logs for WebSocket connects declaring operator.admin or other elevated scopes from identities that should not hold them, and for admin-only operations (config changes, tool or skill installs, session control) from unexpected sources. 6) Review agent tool permissions and connected credentials, applying least privilege so a compromised gateway has limited reach.
What systems are affected by CVE-2026-22172?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, AI agent gateways, multi-user agent platforms, tool-calling agent orchestration.
What is the CVSS score for CVE-2026-22172?
CVE-2026-22172 has a CVSS v3.1 base score of 9.9 (CRITICAL). The EPSS exploitation probability is 0.58%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012Valid AccountsAML.T0049Exploit Public-Facing ApplicationAML.T0053AI Agent Tool InvocationAML.T0108AI AgentCompliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions prior to 2026.3.12 contain an authorization bypass vulnerability in the WebSocket connect path that allows shared-token or password-authenticated connections to self-declare elevated scopes without server-side binding. Attackers can exploit this logic flaw to present unauthorized scopes such as operator.admin and perform admin-only gateway operations.
Exploitation Scenario
An attacker obtains a low-privilege shared gateway token, for example from a leaked config file, a CI log, or a contractor with read-only access, and opens a WebSocket connection to the OpenClaw gateway. In the connect message they self-declare scopes including operator.admin, and the server accepts them without verifying against the credential's actual privileges. With admin rights, the attacker reconfigures the agent, installs a malicious skill or tool, reads session data and connected-service credentials, and directs the agent to act against the victim's mailboxes, repositories or hosts, using the agent's own authorized access to pivot beyond the gateway.
Weaknesses (CWE)
CWE-862 — Missing Authorization: The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
- [Architecture and Design] Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
- [Architecture and Design] Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HReferences
Timeline
Related Vulnerabilities
CVE-2026-335799.9OpenClaw: scope bypass escalates low-priv to admin
Same package: openclawCVE-2026-329229.9OpenClaw: privilege escalation to RCE via token scope bypass
Same package: openclawCVE-2026-307419.8OpenClaw: RCE via request-side prompt injection
Same package: openclawCVE-2026-320389.8OpenClaw: sandbox bypass enables container lateral movement
Same package: openclawCVE-2026-538389.8OpenClaw: approval scope bypass via reconnection state
Same package: openclaw