CVE-2026-41404: OpenClaw: Incomplete scope-clearing fix allows operator.admin escalation via trusted-proxy auth mode
OpenClaw up to 2026.3.28 did not clear self-declared operator scopes on some connections that authenticate through trusted-proxy mode. A client behind the trusted proxy can claim operator.admin and keep it. The complete fix is in 2026.3.31.
Published Apr 3, 2026 · Updated Apr 28, 2026 · Analysis Oct 30, 2026
What an attacker can do
When a client connects to the gateway over WebSocket without a device identity, its scopes are not bound to anything, so the gateway is meant to clear them. The earlier fix covered token and password authentication. In v2026.3.28 it missed connections authenticated by trusted-proxy mode from clients other than the Control UI. A client on such a connection could send operator scopes in its connect request, including operator.admin, and the gateway kept them.
The trusted-proxy path carries a real authenticated identity, so the gateway believes the caller, and the claimed scope sits on top of that identity. Any authenticated user behind the proxy, who should have limited rights, could raise themselves to admin. The CVSS vector reads network, low privileges, no interaction, with high confidentiality and integrity impact.
This matters only for gateways that run trusted-proxy auth mode, for example behind an identity-aware proxy. An admin on the gateway can change configuration and control the agents it manages.
Who is affected
The npm package openclaw, versions 2026.3.28 and earlier, when the gateway uses trusted-proxy authentication. Gateways that use only token or password authentication were covered by the earlier scope-clearing fix. Check the version and the auth mode:
npm ls openclaw
openclaw --versionReview the gateway configuration for a trusted-proxy auth mode.
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, the first stable tag with the complete fix.
npm install -g [email protected]The fix adds a helper, shouldClearUnboundScopesForMissingDeviceIdentity, in src/gateway/server/ws-connection/connect-policy.ts. It makes the message handler call clearUnboundScopes() for device-less connections that use trusted-proxy auth. The sources list no workaround.
How to tell if you were hit
Review gateway logs for connections through the trusted proxy whose scopes include operator.admin when the user's role should be lower. Look for configuration changes, new device pairings and new tokens made by accounts that are not administrators. Compare the admin actions in the audit trail with your list of real admins. Beam records agent shell commands and file access on the host, which helps check what an escalated session did.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Incomplete scope-clearing fix allows operator.admin escalation via trusted-proxy auth mode
Current Maintainer Triage
- Normalized severity: high
- Assessment: v2026.3.28 still misses trusted-proxy scope clearing for non-Control-UI clients, so self-declared operator scopes can survive on a real identity-bearing auth path; the complete fix is unreleased.
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)
8b88b927cb0747ad24d95b07d35682bf85dc5b0e— 2026-03-30T14:19:00+01:00
OpenClaw thanks @north-echo for reporting.
Credited to north-echo.
Questions
- Which OpenClaw version fixes the trusted-proxy scope escalation?
2026.3.31. Versions up to and including 2026.3.28 are affected. The fix commit is 8b88b92, dated 2026-03-30.
- Is this only about the Control UI?
No. The maintainers say the gap was in trusted-proxy scope clearing for non-Control-UI clients, which kept self-declared operator scopes.
- Do I need to be authenticated?
Yes. The attacker must pass trusted-proxy authentication first, so the CVSS vector lists low privileges. The escalation is from that account to operator.admin.
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
