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

CVE-2026-32302: OpenClaw: Untrusted web origins can obtain authenticated operator.admin access in trusted-proxy mode

highCVSS 3.1 8.1GHSA-5wcw-8jjv-m286

OpenClaw before 2026.3.11 skips browser origin validation on Gateway WebSocket connections that carry proxy headers when gateway.auth.mode is trusted-proxy. A malicious web page can open a cross-site WebSocket through the trusted reverse proxy, inherit the proxy's authenticated identity and act as operator.admin. Upgrade to 2026.3.11.

Published Mar 12, 2026 · Updated Mar 16, 2026 · Analysis Oct 31, 2026

What an attacker can do

In trusted-proxy mode the Gateway trusts the identity that the reverse proxy attaches. The WebSocket handshake treated any request that had proxy headers and an Origin header as exempt from the generic browser origin check. A browser-originated connection therefore skipped the normal origin validation, even though it came from a web page. Settings such as controlUi.allowedOrigins did not stop it.

Because trusted-proxy authentication gives a shared authenticated operator context, the connection kept the operator scopes it asked for. The reporter's verified result: a page from an untrusted origin requested operator.admin and successfully called config.get, which exposes sensitive configuration.

The attack needs the victim to load a malicious page in a browser that can reach the proxy endpoint. That fits a developer or admin with the Gateway behind a corporate or local reverse proxy. Depending on the deployment, other operator-level reads and changes are available through the same session. The CVSS vector has user interaction required with high confidentiality and integrity impact.

Who is affected

The openclaw npm package, all versions below 2026.3.11, when the Gateway runs with gateway.auth.mode set to trusted-proxy behind a reverse proxy that sets proxy headers and the Gateway WebSocket is reachable from a browser.

npm ls -g openclaw
openclaw --version

In your config, look for the value trusted-proxy under gateway.auth.mode. Deployments in other auth modes are not described as affected.

openclaw

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

How to fix it

Upgrade to openclaw 2026.3.11 or later.

npm install -g [email protected]

The fix (commit ebed3bb) enforces browser origin validation for any browser-originated WebSocket connection, whether or not proxy headers are present.

If you cannot upgrade, do not expose browser-reachable Gateway WebSocket endpoints in trusted-proxy mode to untrusted origins, and limit reverse-proxy and browser reachability to trusted origins.

How to tell if you were hit

Check Gateway and reverse proxy logs for WebSocket upgrade requests whose Origin header is not one of your allowed origins, especially ones that then request operator.admin or call config.get. Review whether config values were read or changed from a session you cannot tie to a real operator. If you suspect exposure, rotate secrets stored in the Gateway configuration. Beam records agent shell commands and MCP tool calls, but this attack comes from a browser, so Gateway logs are the better source.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In affected versions of openclaw, browser-originated WebSocket connections could bypass origin validation when gateway.auth.mode was set to trusted-proxy and the request arrived with proxy headers. A page served from an untrusted origin could connect through a trusted reverse proxy, inherit proxy-authenticated identity, and establish a privileged operator session.

Impact

This issue affects deployments that expose the Gateway behind a trusted reverse proxy and rely on browser origin checks such as controlUi.allowedOrigins to restrict browser access. An attacker who can cause a victim browser to load a malicious page that can reach the proxy endpoint could establish a cross-site WebSocket connection and call privileged Gateway methods.

In verified impact, the attacker-origin page was able to request operator.admin and successfully call config.get, exposing sensitive configuration. Depending on the deployment, the same authenticated operator path could also permit other privileged reads or mutations available to operator-class callers.

Affected Packages and Versions

  • Package: openclaw (npm)
  • Affected versions: < 2026.3.11
  • Fixed in: 2026.3.11

Technical Details

The WebSocket handshake logic treated proxy-delivered requests as exempt from the generic browser origin check whenever an Origin header was present alongside proxy headers. In trusted-proxy mode, that exemption allowed browser-originated connections to skip the normal origin-validation path even though they were still browser requests.

Because trusted-proxy authentication can produce a shared authenticated operator context, the affected path could retain requested operator scopes after the handshake. That made the browser origin check the missing boundary between an untrusted origin and an authenticated operator-class session.

Fix

OpenClaw now enforces browser origin validation for any browser-originated WebSocket connection regardless of whether proxy headers are present. The fix shipped in [email protected].

Fixed commit: ebed3bbde1a72a1aaa9b87b63b91e7c04a50036b Release tag: v2026.3.11

Workarounds

Upgrade to 2026.3.11 or later.

If you cannot upgrade immediately, avoid exposing browser-reachable Gateway WebSocket endpoints in trusted-proxy mode to untrusted origins, and ensure reverse-proxy/browser reachability is restricted to trusted origins only.

Credited to yianworks.

Questions

Does CVE-2026-32302 affect every OpenClaw Gateway?

It applies when gateway.auth.mode is trusted-proxy and requests arrive with proxy headers. The version must also be below 2026.3.11.

Does it need user interaction?

Yes. A victim's browser must load the attacker's page, which then opens the cross-site WebSocket to the proxy endpoint.

What did the researcher demonstrate?

An untrusted-origin page requested operator.admin and called config.get, exposing sensitive configuration.

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