Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Artificial Intelligence

OpenClaw Vulnerability Allowed Websites to Hijack AI Agents

Malicious websites could open a WebSocket connection to localhost on the OpenClaw gateway port, brute force passwords, and take control of the agent.

OpenClaw security

A vulnerability in the OpenClaw AI assistant could have allowed attackers to hijack agents by luring victims to malicious websites, Oasis Security reports.

Successful exploitation of the bug did not require the installation of malicious extensions or user interaction, instead relying on functionality within OpenClaw.

A self-hosted AI agent, OpenClaw runs a local WebSocket server, which acts as a gateway that handles authentication, orchestrates the agent, manages chat sessions, and stores configurations.

Applications and devices connect to the gateway as nodes to expose functionality, run commands, and access capabilities, while authentication is handled via tokens or passwords.

“The gateway binds to localhost by default, based on the assumption that local access is inherently trusted. That assumption is where things break down,” Oasis explains.

The cybersecurity firm discovered that AI agents with the gateway bound to localhost and protected by passwords could be hijacked if developers visited malicious websites.

Advertisement. Scroll to continue reading.

Because WebSocket connections to localhost were not blocked by the browser’s cross-origin policies, Oasis explains, JavaScript code on a malicious website could open such a connection using the agent’s port.

It could then brute-force the password, because localhost connections were not covered by the gateway’s rate limiter, and then register as a trusted device, as device pairings from localhost were automatically approved with no user prompt.

“The gateway’s rate limiter completely exempts loopback connections—failed attempts are not counted, not throttled, and not logged. In our lab testing, we achieved a sustained rate of hundreds of password guesses per second from browser JavaScript alone. At that speed, a list of common passwords is exhausted in under a second, and a large dictionary would take only minutes,” Oasis notes.

With a guessed password, the attacker gains an authenticated session with administrator privileges, gaining full control of OpenClaw. This enables the attacker to interact with the agent, extract configurations, enumerate nodes, and read logs.

“In practice, this means an attacker could instruct the agent to search the developer’s Slack history for API keys, read private messages, exfiltrate files from connected devices, or execute arbitrary shell commands on any paired node. For a developer with typical OpenClaw integrations, this is equivalent to full workstation compromise, initiated from a browser tab,” Oasis says.

The OpenClaw security team addressed the vulnerability within 24 hours of receiving Oasis’s report and classified it as a high-severity issue. Users are advised to update to OpenClaw version 2026.2.25 or later. 

Related: Claude Code Flaws Exposed Developer Devices to Silent Hacking

Related: OpenClaw Security Issues Continue as SecureClaw Open Source Tool Debuts

Related: Hackers Weaponize Claude Code in Mexican Government Cyberattack

Related: The Blast Radius Problem: Stolen Credentials Are Weaponizing Agentic AI

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Delve into big-picture strategies to reduce attack surfaces, improve patch management, conduct post-incident forensics, and tools and tricks needed in a modern organization.

Register

Organizations are investing heavily in third-party risk management, but breaches, delays, and blind spots continue to persist. Join this live webinar as we examine the gap between how organizations think their third-party risk programs are performing and what’s actually happening in practice.

Register

People on the Move

Anurag Jain has been appointed Senior Vice President of Engineering at CodeHunter

CTERA has appointed Tal Sarfaty as Senior Vice President of Cybersecurity.

Quantum Secure Encryption has named Michael Massing as Chief Technology Officer.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.