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

CVE-2026-28472: OpenClaw's gateway connect could skip device identity checks when auth.token was present but not yet validated

criticalCVSS 4.0 9.3 · 3.1 9.8GHSA-rv39-79c4-7459

OpenClaw up to 2026.2.1 skipped its device-identity check in the gateway WebSocket `connect` handshake whenever a non-empty `auth.token` was present, even if the token was never validated. A client reaching the gateway, for example through Tailscale, could connect without device pairing and, depending on setup, get operator access. Upgrade to 2026.2.2.

Published Feb 17, 2026 · Updated Mar 10, 2026 · Analysis Nov 1, 2026

What an attacker can do

The handshake handler is in src/gateway/server/ws-connection/message-handler.ts. It decided whether to demand a device identity based on the presence of a non-empty connectParams.auth.token, not on a successful shared-secret check. A client could send any token string and skip pairing.

The advisory ties the exposure to deployments where the gateway WebSocket is reachable and connections can be authorized through Tailscale without validating the shared secret. In that case the client connects with no device identity or pairing. Depending on version and configuration, the result is operator access to the gateway, which controls the agent. The scores are critical because the attack needs network reach and no credentials.

OpenClaw's security guidance says the gateway should be reachable only from a trusted network and by trusted users, for example with Tailnet ACLs when using Tailscale Serve. If only trusted users can reach the socket, there is usually no untrusted party to exploit this.

Who is affected

The openclaw npm package up to and including 2026.1.x and 2026.2.1, in setups where the gateway WebSocket can be reached by users you do not fully trust, particularly with Tailscale authorization. Check:

npm ls openclaw
openclaw --version

Then review who can reach the gateway port and your Tailnet ACLs or Serve settings.

openclaw

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

How to fix it

Upgrade to 2026.2.2 or later:

npm install [email protected]

The fix, commit fe81b1d7125a014b8280da461f34efbf5f761575, lets a client skip device identity only after validated shared-secret authentication (token or password). Tailscale-authenticated connections without a validated shared secret now need device identity. Also restrict the gateway to trusted networks and users, as the project's guidance says.

How to tell if you were hit

Review gateway logs for WebSocket connect handshakes that succeeded without a paired device identity, especially ones that include an auth.token value. List the paired devices and compare them with the sessions actually in use. Check Tailscale ACL logs for nodes that reached the gateway port and should not have. Look for operator-level actions you did not perform.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The gateway WebSocket connect handshake could allow skipping device identity checks when auth.token was present but not yet validated.

Details

In src/gateway/server/ws-connection/message-handler.ts, the device-identity requirement could be bypassed based on the *presence* of a non-empty connectParams.auth.token rather than a *validated* shared-secret authentication result.

Impact

In deployments where the gateway WebSocket is reachable and connections can be authorized via Tailscale without validating the shared secret, a client could connect without providing device identity/pairing. Depending on version and configuration, this could result in operator access.

Deployment Guidance

Per OpenClaw security guidance, the gateway should only be reachable from a trusted network and by trusted users (for example, restrict Tailnet users/ACLs when using Tailscale Serve).

If the gateway WebSocket is only reachable by trusted users, there is typically no untrusted party with network access to exploit this issue.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.2.1
  • Fixed: >= 2026.2.2

Fix

Device-identity skipping now requires *validated* shared-secret authentication (token/password). Tailscale-authenticated connections without validated shared secret require device identity.

Fix Commit(s)

  • fe81b1d7125a014b8280da461f34efbf5f761575

Thanks @simecek for reporting.

Credited to simecek, stanislavfortaisle.

Questions

Is a token required to exploit this?

The client sends a non-empty auth.token, but the server did not validate it before skipping the device-identity check, so any value worked.

Am I safe if only trusted users reach the gateway?

The advisory says there is typically no untrusted party to exploit it in that case, but upgrading to 2026.2.2 is still advised.

Which version fixes CVE-2026-28472?

OpenClaw 2026.2.2. Earlier versions are listed as vulnerable.

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