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

GHSA-48vw-m3qc-wr99: OpenClaw's Trusted-proxy Control UI sessions retain privileged scopes without device identity on device-less allow paths

high

In OpenClaw before 2026.3.22, a Control UI session that came through a trusted proxy but had no device identity kept whatever scopes it declared, including operator.admin. The server did not clear them on that path. Upgrade openclaw to 2026.3.22 or later.

Published Mar 26, 2026 · Updated Apr 22, 2026 · Analysis Oct 31, 2026

What an attacker can do

Control UI connections normally bind to a device identity. The Gateway's connect policy lets a Control UI client with no device through when trusted-proxy auth succeeds. In src/gateway/server/ws-connection/message-handler.ts, scopes were cleared for device-less clients only when the client was not the Control UI or the decision was not "allow". A device-less Control UI on the allow path therefore kept the scopes it claimed in its connect request.

The client chooses those scopes itself. Anyone whose request is accepted by the trusted proxy can claim operator.admin and use admin RPCs, with no device pairing behind it. The fix test shows what that covers: admin methods such as set-heartbeats, and talk.config with secrets requested, which needs operator.read.

The advisory has no CVSS vector or CWE. The exposure is deployments that put OpenClaw behind a trusted-proxy auth mode, for example an identity-aware reverse proxy, where users who should only reach the UI could instead gain admin control and read secrets.

Who is affected

Affected: the openclaw npm package before 2026.3.22, on Gateways that use trusted-proxy authentication for the Control UI. Installs that do not use trusted-proxy mode are not described as exposed. Check:

npm ls openclaw
openclaw --version

Also check whether your Gateway auth config sets a trusted proxy.

openclaw

Ecosystem
npm
Affected
< 2026.3.22
Fixed in
2026.3.22
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.22 or later; the fix stays in 2026.3.23 and 2026.3.23-2.

npm install -g openclaw@latest

Fix commit ccf16cd8892402022439346ae1d23352e3707e9e adds trustedProxyAuthOk to the scope-clearing condition in message-handler.ts. A device-less client on the trusted-proxy path now loses all self-declared scopes. In the commit's test, such a client that claims operator.admin connects but gets missing-scope errors on status and the admin RPCs. The advisory names no workaround.

How to tell if you were hit

Review Gateway logs for Control UI WebSocket connections that came through the trusted proxy without a device identity, and for admin RPCs or secret-reading calls (such as talk.config with secrets) from them. Check for config changes you did not make. After upgrading, such sessions show missing-scope errors when they call admin methods, which is the expected result.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Trusted-proxy Control UI sessions without device identity could retain self-declared privileged scopes on the device-less allow path.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: < 2026.3.22
  • Fixed: >= 2026.3.22
  • Latest released tag checked: v2026.3.23-2 (630f1479c44f78484dfa21bb407cbe6f171dac87)
  • Latest published npm version checked: 2026.3.23-2

Fix Commit(s)

  • ccf16cd8892402022439346ae1d23352e3707e9e

Release Status

The fix shipped in v2026.3.22 and remains present in v2026.3.23 and v2026.3.23-2.

Code-Level Confirmation

  • src/gateway/server/ws-connection/message-handler.ts now strips unbound self-declared scopes on the trusted-proxy no-device path.
  • src/gateway/server/ws-connection/connect-policy.ts remains the allow path, but the shipped scope scrub prevents privilege retention without device identity.

OpenClaw thanks @nexrin for reporting.

Credited to nexrin, KeenSecurityLab, qclawer.

Questions

Does GHSA-48vw-m3qc-wr99 have a CVE or CVSS score?

The advisory lists no CVE id, CVSS vector or CWE. GitHub rates it high severity.

Am I affected if I do not use a trusted proxy?

The advisory describes only the trusted-proxy Control UI path without device identity. Versions below 2026.3.22 are listed, but the described flaw is on that path.

What happens to a device-less client after the fix?

Its declared scopes are cleared. It can still connect and call low-privilege methods like health, but admin and secret-reading RPCs return missing-scope errors.

Is it exploited in the wild?

No source reports exploitation, and it is not in CISA's KEV catalog.

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