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

CVE-2026-22174: OpenClaw Loopback CDP probe can leak Gateway token to local listener

mediumCVSS 3.1 5.7GHSA-v3j7-34xh-6g3w

OpenClaw up to 2026.2.21-2 sent its Gateway relay token in the x-openclaw-relay-token header when probing a loopback Chrome CDP port. A local process that controls that port can read the token and reuse it as Gateway bearer auth. Upgrade the npm package openclaw to 2026.2.22. The risk is for shared-host installs.

Published Mar 3, 2026 · Updated Mar 18, 2026 · Analysis Oct 31, 2026

What an attacker can do

For loopback CDP URLs, OpenClaw adds the relay token header (getChromeExtensionRelayAuthHeaders in src/browser/extension-relay.ts, applied by getHeadersWithAuth in src/browser/cdp.helpers.ts). The reachability probe in fetchChromeVersion in src/browser/chrome.ts then requests /json/version with that header. Whoever listens on the probed port receives the Gateway credential.

An attacker with a local account can race to bind the relay port, wait for the probe and copy the token. The token works as a bearer credential against the Gateway, so what follows depends on which Gateway capabilities are enabled. The advisory says only local credential disclosure plus follow-on impact that varies by deployment.

The maintainers state this does not change the security model of a standard single-owner install, where you trust local processes under your own OS account. The danger is non-standard shared-user or shared-host setups where an untrusted local user can bind the loopback port. The CVSS 3.1 vector has AV:L and AC:H for that reason.

Who is affected

npm package openclaw, versions up to and including 2026.2.21-2. The risk is on hosts that more than one user can log in to, or where untrusted local processes run next to OpenClaw and its browser relay. Check your version:

npm ls openclaw

openclaw

Ecosystem
npm
Affected
<= 2026.2.21-2
Fixed in
2026.2.22
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.2.22 or later (fix commit afa22acc4a09fdf32be8a167ae216bee85c30dad).

npm install [email protected]

After upgrading on a shared host, rotate the Gateway token, because an earlier probe may have exposed it. The advisory names no workaround.

How to tell if you were hit

On shared hosts, check which process listens on the CDP relay port with ss -ltnp and compare it to the OpenClaw browser relay. Look for unknown listeners on loopback ports that OpenClaw probes, and for Gateway requests using your token from unexpected sources or times. On a single-owner machine, the advisory treats the risk as outside the documented security model.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

A local process can capture the OpenClaw Gateway auth token from Chrome CDP probe traffic on loopback.

Details

Affected versions inject x-openclaw-relay-token for loopback CDP URLs, and CDP reachability probes send that header to /json/version. If an attacker controls the probed loopback port, they can read that token and reuse it as Gateway bearer auth.

Relevant code paths (pre-fix):

  • src/browser/extension-relay.ts (getChromeExtensionRelayAuthHeaders)
  • src/browser/cdp.helpers.ts (getHeadersWithAuth)
  • src/browser/chrome.ts (fetchChromeVersion)

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published (at triage): 2026.2.21-2
  • Vulnerable: <= 2026.2.21-2
  • Patched: >= 2026.2.22

Deployment Model Applicability

This does not change OpenClaw’s documented security model for standard single-owner installs (you own the machine/VPS and trust local processes under that OS account boundary). Risk is for non-standard shared-user/shared-host installs where an untrusted local user/process can race/bind the loopback relay port.

Impact

  • Local credential disclosure.
  • Follow-on impact depends on local deployment and enabled Gateway capabilities.

Fix Commit(s)

  • afa22acc4a09fdf32be8a167ae216bee85c30dad

Release Process Note

Patched version is set to >= 2026.2.22 for the published release.

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Is a single-user OpenClaw install at risk from CVE-2026-22174?

The maintainers say it does not change the security model for standard single-owner installs, where you trust local processes under the same OS account. The risk is for shared-user or shared-host setups.

What does the attacker get?

The Gateway auth token, which they can reuse as a bearer credential. What they can do next depends on the Gateway capabilities that are enabled.

Which version fixes it?

openclaw 2026.2.22 or later. Versions up to 2026.2.21-2 are 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