# OpenClaw Control UI sent its gateway token to any gatewayUrl in a link, enabling 1-click RCE

Source: https://botpassword.com/incidents/2026-01-openclaw-gatewayurl-token-exfiltration
Disclosed: 2026-01-31 · Type: AI agent · Status: Resolved · Updated: 2026-10-25

OpenClaw's Control UI accepted a `gatewayUrl` from the page's query string and connected to it automatically, sending the stored gateway token in the WebSocket handshake. Clicking a crafted link was enough to hand that token to an attacker, who could then reconfigure the agent and run commands on the host, even when the gateway listened only on loopback. Versions up to 2026.1.28 are affected; update to 2026.1.29 or later and rotate the gateway token and any keys the agent held.

Identifiers: CVE-2026-25253, GHSA-g8p2-7wf7-98mq

## What was exposed

The OpenClaw gateway token. depthfirst says the token carried `operator.admin` and `operator.approvals` scopes. With it an attacker could connect to the victim's gateway through the victim's own browser, because the local WebSocket server did not check the `Origin` header, then turn off command approval prompts, move execution out of the container sandbox onto the host, and run arbitrary commands. From there, anything the agent could reach was exposed: connected accounts and messages, and API keys the agent had been configured with. depthfirst gives Stripe API keys as one example of what a connected agent might hold. The advisory calls the impact full gateway compromise for any deployment where a user had authenticated to the Control UI. Neither source reports exploitation in the wild.

## Who is affected

You are affected if you ran OpenClaw (published as `clawdbot`, also known as Moltbot) at version 2026.1.28 or earlier and had signed in to the Control UI in a browser. Exposure required opening a crafted link or visiting a malicious page while that browser session existed. Check your version and, if you were on an affected release, review the gateway configuration for changed sandbox or tool-approval settings you did not make.

## What to do

1. Update OpenClaw to 2026.1.29 or later; the fix asks you to confirm any new gateway URL.
2. Rotate the gateway token and any passwords used for the Control UI.
3. Rotate API keys and OAuth connections configured in the agent (for example payment, messaging and model provider keys) if you clicked untrusted links while on an affected version.
4. Check that exec approvals and sandbox settings are still set the way you configured them.

## Keys to rotate

- [Stripe](https://botpassword.com/keys/stripe)

## Timeline

- 2026-01-31: OpenClaw publishes GHSA-g8p2-7wf7-98mq (high), 1-click RCE via authentication token exfiltration from `gatewayUrl`, affecting versions up to 2026.1.28 and fixed in 2026.1.29. ([source](https://github.com/openclaw/openclaw/security/advisories/GHSA-g8p2-7wf7-98mq))
- 2026-02-01: depthfirst publishes its write-up, and NVD publishes CVE-2026-25253. ([source](https://depthfirst.com/post/1-click-rce-to-steal-your-moltbot-data-and-keys))

## Indicators

- Control UI URLs carrying a `gatewayUrl` query parameter pointing to an unfamiliar host.
- Gateway configuration changes that disable exec approvals or move execution from the sandbox to the host.

## Sources

- https://github.com/openclaw/openclaw/security/advisories/GHSA-g8p2-7wf7-98mq
- https://nvd.nist.gov/vuln/detail/CVE-2026-25253
- https://depthfirst.com/post/1-click-rce-to-steal-your-moltbot-data-and-keys
