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

CVE-2026-26322: OpenClaw Gateway tool allowed unrestricted gatewayUrl override

highCVSS 3.1 7.6GHSA-g6q9-8fvw-f7rf

OpenClaw's Gateway tool, before 2026.2.14, accepted a tool-supplied `gatewayUrl` with no restriction. Whoever can invoke the tool can make the OpenClaw host open outbound WebSocket connections to localhost services, private addresses or cloud metadata IPs. Upgrade `openclaw` to 2026.2.14.

Published Feb 17, 2026 · Updated Feb 20, 2026 · Analysis Nov 1, 2026

What an attacker can do

Some tool-call paths passed a gatewayUrl override straight into the Gateway WebSocket client, with no validation or allowlist. The host could be told to connect to endpoints that are not gateways at all, for example a service on localhost, an address on the private network, or a cloud metadata IP.

In the common case, the result is an outbound connection attempt followed by an error or timeout. If the caller can see those results, the differences between them give limited network reachability probing. If the target speaks WebSocket and is reachable, further interaction may be possible.

Triggering it needs the ability to call tools that accept gatewayUrl overrides, directly or indirectly. In typical setups that means authenticated operators or trusted automation. It is not a drive-by flaw for internet users, unless a deployment lets untrusted users trigger such tool calls, for instance through an agent steered by prompt injection. The CVSS vector reflects low privileges required.

Who is affected

The openclaw npm package up to and including 2026.2.13, in deployments where tool calls that accept a gatewayUrl can be made by people or automation you do not fully trust. Check:

npm ls openclaw
openclaw --version

openclaw

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

How to fix it

Upgrade to 2026.2.14 or later:

npm install [email protected]

Commit c5406e1d2434be2ef6eb4d26d8f1798d718713f4 limits a tool-supplied gatewayUrl to loopback on the configured gateway port, or to the configured gateway.remote.url. It rejects other protocols, embedded credentials, query strings, fragments and non-root paths. The advisory gives no other workaround. Limit who can invoke the Gateway tool until you upgrade.

How to tell if you were hit

Look at the host's outbound connections for WebSocket attempts to addresses that are not your gateway, especially 127.0.0.1 on other ports, RFC 1918 ranges and 169.254.169.254. Search tool-call logs for Gateway tool invocations that include a gatewayUrl argument, and for repeated connection errors or timeouts logged against odd targets. Beam logs agent MCP tool calls, which can help trace who asked for such a call.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The Gateway tool accepted a tool-supplied gatewayUrl without sufficient restrictions, which could cause the OpenClaw host to attempt outbound WebSocket connections to user-specified targets.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.2.13
  • Patched versions: >= 2026.2.14 (planned)

What Is Needed To Trigger This

This requires the ability to invoke tools that accept gatewayUrl overrides (directly or indirectly). In typical setups this is limited to authenticated operators, trusted automation, or environments where tool calls are exposed to non-operators.

In other words, this is not a drive-by issue for arbitrary internet users unless a deployment explicitly allows untrusted users to trigger these tool calls.

Details

Some tool call paths allowed gatewayUrl overrides to flow into the Gateway WebSocket client without validation or allowlisting. This meant the host could be instructed to attempt connections to non-gateway endpoints (for example, localhost services, private network addresses, or cloud metadata IPs).

Impact

In the common case, this results in an outbound connection attempt from the OpenClaw host (and corresponding errors/timeouts). In environments where the tool caller can observe the results, this can also be used for limited network reachability probing. If the target speaks WebSocket and is reachable, further interaction may be possible.

Fix

Tool-supplied gatewayUrl overrides are now restricted to loopback (on the configured gateway port) or the configured gateway.remote.url. Disallowed protocols, credentials, query/hash, and non-root paths are rejected.

Fix Commit(s)

  • c5406e1d2434be2ef6eb4d26d8f1798d718713f4

Release Process Note

patched_versions is set to the planned next release. Once the npm release is published, the advisory can be published without further edits.

Thanks @p80n-sec for reporting.

Credited to p80n-sec.

Questions

Can an anonymous internet user exploit this?

Not on its own. The advisory says it needs the ability to invoke the tools, so it matters mainly where untrusted users can trigger tool calls.

What does the attacker see?

Usually only connection errors or timeouts. If the caller can observe results, that allows limited reachability probing, and a reachable WebSocket target may allow more.

Which overrides are still allowed after the fix?

Loopback on the configured gateway port, and the configured gateway.remote.url.

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