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.
| Disclosed | January 31, 2026 |
|---|---|
| Affected | OpenClaw (formerly Moltbot and Clawdbot), clawdbot |
| Type | AI agent |
| Status | Resolved |
| CVE | CVE-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
- Update OpenClaw to 2026.1.29 or later; the fix asks you to confirm any new gateway URL.
- Rotate the gateway token and any passwords used for the Control UI.
- 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.
- 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
- 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 - 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
gatewayUrlquery 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.
Other ai agent and mcp incidents
- OpenCode on Windows and WSL ran commands from a malicious MCP server during OAuth sign-in 2026-10-04
- OpenCode server's upgrade endpoint let any webpage install an attacker's npm package 2026-09-24
- Cursor before 3.0: prompt-injected agent could escape its sandbox and run code as the user 2026-06-05
- Claude Code trust dialog could be bypassed with a spoofed git worktree, running repo hooks 2026-04-24
- Claw Chain: four OpenClaw flaws let a foothold read agent secrets and escape the sandbox 2026-04-23
- Claude Code could send Anthropic API keys to a malicious repo's endpoint before the trust prompt 2026-01-20