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

GHSA-cjv3-m589-v3rx: OpenClaw has Canvas route hardening for mixed-trust deployments

mediumCVSS 4.0 6.3

OpenClaw canvas routes could be reached by clients that should not have access when the gateway is exposed on a LAN or tailnet. Older versions fell back to client-IP trust for canvas requests. Operators who expose canvas beyond loopback should upgrade the `openclaw` npm package to 2026.2.21, which requires a token or a session capability.

Published Mar 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

OpenClaw assumes a trusted host with loopback-first access. Some operators publish canvas routes on a LAN or tailnet. In versions up to 2026.2.19-2, authorizeCanvasRequest in src/gateway/server-http.ts could grant access by client IP. It accepted private or loopback addresses and relied on proxy headers. When a trusted proxy sent no usable x-forwarded-for or x-real-ip, address resolution fell back to the proxy's own IP. In a shared network, any peer that appears under an allowed address could then reach the canvas.

The advisory calls this defense-in-depth hardening. Exposure is greatest in mixed-trust or non-loopback deployments and lower on a single-operator trusted host. The CWE tags (cross-site scripting, framed UI) and the CVSS 4.0 vector show a user-interaction requirement and impact on a subsequent system, not on OpenClaw itself. The canvas serves agent-driven pages and live content. A neighbor who reaches it could present content inside the operator's session. The advisory does not describe a specific exploit.

Who is affected

Affected: the openclaw npm package at 2026.2.19-2 and earlier. Highest risk is for gateways bound beyond loopback (LAN, tailnet or behind a reverse proxy) with canvas routes reachable. The default gateway.bind: "loopback" setup has lower practical exposure.

Check your version:

npm ls openclaw

For a global install, use npm ls -g openclaw. Then check your gateway.bind and gateway.trustedProxies settings.

openclaw

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

How to fix it

Upgrade to openclaw 2026.2.21:

npm install [email protected]

The fix (commits c45f3c5b and 08a79679) removes the shared-IP fallback and makes proxy address resolution fail closed. Canvas routes now need either an Authorization: Bearer token or a node-scoped capability URL. Capability URLs use the /__openclaw__/cap path prefix or an oc_cap query parameter, last 10 minutes and are tied to a connected node WebSocket session. After upgrading, keep the gateway on loopback unless you need wider access, and set gateway.trustedProxies to only the proxies you run.

How to tell if you were hit

Check gateway HTTP logs for requests to canvas paths from addresses that are not your own devices, especially on LAN or tailnet interfaces, and for canvas WebSocket upgrades that do not come from your paired nodes. Review where gateway.bind points and which hosts can reach that port. After upgrading, unauthorized canvas requests get an unauthorized response instead of being allowed by address, so a rise in such responses can reveal probing.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

This advisory tracks a defense-in-depth hardening for canvas routes. In mixed-trust or network-visible deployments, prior canvas auth/fallback behavior could broaden access beyond intended boundaries.

Deployment Context

OpenClaw’s default model is trusted host + loopback-first access. Some operators intentionally expose canvas routes on LAN/tailnet. This update is aimed at those broader deployment patterns.

What Changed

  • Require explicit token or session-capability authorization for canvas routes.
  • Remove shared-IP fallback paths for canvas access.
  • Tighten bind/fallback behavior to fail closed.

Impact

Risk was highest in non-loopback or mixed-trust environments. In strict single-operator trusted-host setups, practical exposure is lower.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Vulnerable: <= 2026.2.19-2
  • Patched: 2026.2.21 (next release target)

Fix Commit(s)

  • c45f3c5b004c8d63dc0e282e2176f8c9355d24f1
  • 08a7967936cfc0b2af6b27ec1f9272542648ad6c

Thanks @NucleiAv for reporting.

Credited to NucleiAv.

Questions

Is GHSA-cjv3-m589-v3rx a remotely exploitable bug?

It is described as defense-in-depth hardening. The network-reachable canvas routes matter only if you expose them beyond loopback. The advisory names no specific exploit and says exposure is lower on strict single-operator hosts.

Which OpenClaw version contains the fix?

2026.2.21. Versions up to 2026.2.19-2 are affected.

Do I need to change my setup after upgrading?

Canvas routes now need a token or session capability, and the IP fallback is gone. Clients that relied on being on a trusted network address must authenticate.

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