AI agent · January 31, 2026

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

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.

DisclosedJanuary 31, 2026
AffectedOpenClaw (formerly Moltbot and Clawdbot), clawdbot
TypeAI agent
StatusResolved
CVECVE-2026-25253

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.

Am I 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 now

  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

Guides to the credentials this incident put at risk:

Timeline

  1. 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
  2. depthfirst publishes its write-up, and NVD publishes CVE-2026-25253. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

  • 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.

What this changes for credential handling

  • One bearer token unlocked every credential the agent had been given. BotPassword keeps secrets out of the agent process and requires human approval for sensitive actions outside the agent's own settings.

Frequently asked questions

Am I affected by the OpenClaw (formerly Moltbot and Clawdbot) incident?

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 was exposed in the OpenClaw (formerly Moltbot and Clawdbot) incident?

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.

Which keys should I rotate?

Rotate any Stripe credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.