CVE-2026-41398: OpenClaw: iOS A2UI bridge trusted generic local-network pages for agent.request dispatch
The OpenClaw iOS app before 2026.4.2 trusted any page on a local network or tailnet host to send A2UI actions. A page loaded in the canvas could then inject agent.request runs into the active iOS node session. Upgrade the openclaw package to 2026.4.2.
Published Apr 7, 2026 · Updated Apr 28, 2026 · Analysis Oct 30, 2026
What an attacker can do
The iOS node shows agent-driven UI in a web canvas. Messages from that canvas pass through CanvasA2UIActionMessageHandler in ScreenWebView.swift, which turns actions into agent.request dispatches. Before the fix, the handler accepted messages from the bundled scaffold and also from any page for which isLocalNetworkCanvasURL was true. That covered localhost, LAN and Tailscale addresses.
An attacker who can get a page from such a host loaded in the canvas, for example from a compromised device or service on the same network, could make it send actions. Nothing else was needed: the vector has no privileges and no user interaction.
The demonstrated result was unauthorized non-owner agent.request runs in the active session. They pollute session state and use up model budget. The advisory states the demonstrated impact did not include owner-only actions or arbitrary code execution on the host. Teams that run the OpenClaw iOS node on shared or home networks with other services on them are the ones to patch.
Who is affected
openclaw on npm, version 2026.4.1 and earlier, used with the iOS node and its A2UI canvas. Check the installed gateway version:
npm ls openclawAlso check the iOS app build you run, since the faulty code is in the Swift app (ScreenController and ScreenWebView) and ships with the release.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.4.1
- Fixed in
- 2026.4.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.2 or later, and update the iOS node to the same release:
npm install [email protected]Commit 49d08382a90f71dabe2877b3f6729ad85f808d57 removes isLocalNetworkCanvasURL. Action dispatch is now allowed only from the bundled scaffold or from the single remote URL that the app was told to trust, matched after normalization. Any other navigation clears that trust. The advisory lists no workaround.
How to tell if you were hit
Look in the session history of the iOS node for agent.request runs that no owner started, and for sudden budget use. Check which pages the canvas loaded, and which hosts on your local network or tailnet served them. The sources give no log line for this bug. Beam records agent shell commands and MCP tool calls on the machine it runs on, which can show what an injected request caused there.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Before OpenClaw 2026.4.2, the iOS A2UI bridge treated generic local-network pages as trusted bridge origins. A page loaded from a local-network or tailnet host could trigger agent.request dispatch without the stricter trusted-canvas origin check.
Impact
A loaded attacker-controlled page could inject unauthorized non-owner agent.request runs into the active iOS node session, polluting session state and consuming budget. The demonstrated impact did not include owner-only actions or arbitrary host execution.
Affected Packages / Versions
- Package: openclaw (npm)
- Affected versions: <= 2026.4.1
- Patched versions: >= 2026.4.2
- Latest published npm version: 2026.4.1
Fix Commit(s)
49d08382a90f71dabe2877b3f6729ad85f808d57 — restrict A2UI action dispatch to trusted canvas URLs
Release Process Note
The fix is present on main and is staged for OpenClaw 2026.4.2. Publish this advisory after the 2026.4.2 npm release is live.
Thanks @nexrin for reporting.
Credited to nexrin, KeenSecurityLab, qclawer.
Questions
- Which OpenClaw version fixes CVE-2026-41398?
2026.4.2. Versions up to and including 2026.4.1 are affected.
- Can the injected requests run owner-only actions?
The advisory says the demonstrated impact did not include owner-only actions or arbitrary host execution. It covers non-owner agent.request runs in the iOS session.
- Is the internet exposed?
The flaw concerns pages from local-network or tailnet hosts. The attacker needs a page on such a host to load in the canvas.
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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
