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

GHSA-pfv7-rr5m-qmv6: OpenClaw has auth inconsistency on local Browser Extension Relay /extension endpoint

mediumCVSS 4.0 5.1

OpenClaw's optional Chrome extension relay accepted unauthenticated WebSocket connections on its `/extension` endpoint, while `/json/*` and `/cdp` required a token. A local process on the same machine could connect and interfere with the relay. Upgrade the `openclaw` npm package to 2026.2.19.

Published Mar 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

The relay listens on loopback (127.0.0.1) and bridges the OpenClaw browser tool to a Chrome extension. Its /json/* and /cdp endpoints demanded the gateway token, but /extension took any WebSocket upgrade. Loopback and origin checks were the only barrier, and those are not authentication (CWE-306).

The attacker must already run code on the same machine, which is why the CVSS 4.0 vector is local with no privileges and no user interaction. Such a process could connect to /extension without the token and interfere with relay behavior, since the advisory rates integrity impact as low. The advisory says no remote network path exists and the issue applies only when the extension relay feature is in use. It does not describe data theft or code execution through this endpoint.

A multi-user host, or a machine where untrusted local code can run next to an agent, is the realistic exposure.

Who is affected

Affected: the openclaw npm package before 2026.2.19. The advisory text names 2026.2.17 and earlier as affected, which was the latest published version at triage, and the package data lists 2026.2.19 as the fix. Only setups that enable the Chrome extension relay are exposed. Without the relay feature, there is no /extension listener.

Check the version:

npm ls openclaw

For a global install, use npm ls -g openclaw.

openclaw

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

How to fix it

Upgrade to openclaw 2026.2.19:

npm install [email protected]

The fix (commit 7e54b6c9) requires the gateway token on both /extension and /cdp. The Chrome extension appends the token as a token query parameter on the /extension WebSocket URL. /cdp takes the raw gateway token in the x-openclaw-relay-token header. The extension's options page has a new "Gateway token" field. After upgrading, enter the token there, using the value from gateway.auth.token or OPENCLAW_GATEWAY_TOKEN. Loopback and origin checks stay as defense in depth.

How to tell if you were hit

Check the relay's access logs, if kept, for WebSocket upgrades on /extension from processes you do not recognize. List local listeners and connections on the relay port with ss -tnp and compare the owning processes with the browser extension and OpenClaw. Unexpected tab or navigation behavior driven through the relay can also be a clue. After the patch, a connection without the token fails with a 401, so repeated 401s on /extension show probing.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

When the optional Chrome extension relay is enabled, /extension accepted unauthenticated WebSocket upgrades while /json/* and /cdp required auth.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.2.17
  • Latest published npm version at triage time: 2026.2.17

Impact

This is a local-only issue on loopback (127.0.0.1) and only applies when the extension relay feature is in use. A local process on the same machine could connect to /extension without the token and interfere with extension-relay behavior.

No remote network exploit path is involved.

Fix

  • Require gateway-token auth on both /extension and /cdp relay WebSocket endpoints.
  • Keep loopback/origin checks as defense-in-depth, not as authentication.
  • Use one token path in setup: gateway.auth.token / OPENCLAW_GATEWAY_TOKEN.

Fix Commit(s)

  • 7e54b6c96feb1a5c30884f2b32037b8dadd0e532

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Can GHSA-pfv7-rr5m-qmv6 be exploited over the network?

No. The advisory says it is local-only on loopback, and only when the extension relay feature is in use. An attacker needs a process on the same machine.

Do I need to reconfigure the Chrome extension after upgrading?

Yes. The extension now sends the gateway token, so enter it in the options page Gateway token field. Without it the relay connection fails.

Which version fixes it?

2026.2.19. The advisory text names 2026.2.17 and earlier as affected.

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