CVE-2026-41389: OpenClaw: Webchat media embedding enforces local-root containment for tool-result files
OpenClaw 2026.4.7 up to 2026.4.15 let webchat media embedding take local and UNC-style paths from tool results without enforcing the configured local-root policy. A crafted media reference could make the host read files or touch a Windows network path. Upgrade the `openclaw` npm package to 2026.4.15.
Published Apr 17, 2026 · Updated May 8, 2026 · Analysis Oct 29, 2026
What an attacker can do
When a tool returns media, OpenClaw's webchat path normalizes the reference and embeds the file in a media block on the host. In the affected range, that step passed local and UNC-style paths on without applying the localRoots containment policy (CWE-22, CWE-73). The file read happens on the host before the user sees any rendered result.
A crafted tool-result media reference can then do two things. It can make the host read an allowed local file, which can disclose that file's contents. On Windows, it can make the host open a network path, which can leak network credentials to the server named in the path. The advisory rates severity as medium because the exploit depends on a tool-result media path reaching the webchat embedding code.
In practice, the entry point is content a tool returns, for example from a web page, document or MCP server that an agent processed. A team that connects OpenClaw webchat to untrusted tool output is the exposed one. Windows deployments carry the added credential risk.
Who is affected
The openclaw npm package from 2026.4.7 up to, but not including, 2026.4.15. Earlier versions are outside the advisory range. Check the installed version:
npm ls -g openclawThe webchat media path must be in use. The credential-exposure case applies to Windows hosts.
openclaw
- Ecosystem
- npm
- Affected
- >= 2026.4.7, < 2026.4.15
- Fixed in
- 2026.4.15
- Check
npm ls openclaw
How to fix it
Upgrade to 2026.4.15 or later.
npm install -g openclaw@latestThe fix hardens the webchat media path and the shared media resolver. It rejects remote-host file:// URLs and Windows network paths before any filesystem access. Audio embedding now enforces configured localRoots before stat or read operations. The changes are in PRs #67293, #67298 and #67303, in chat-webchat-media.ts and web-media.ts. The advisory lists no workaround.
How to tell if you were hit
Search gateway and tool logs for tool results whose media references are file:// URLs, paths outside your configured localRoots, or UNC paths like \\host\share. On Windows, check outbound SMB connections (port 445) from the OpenClaw host to unfamiliar addresses. The advisory gives no log signature.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Webchat tool-result media normalization could pass local and UNC-style file paths into the host-side media embedding path without applying the configured local-root containment policy.
Impact
A crafted tool-result media reference could cause the host to attempt local file reads or Windows UNC/network path access while preparing webchat media blocks. This could disclose allowed host files or trigger network credential exposure on affected Windows deployments. Severity remains medium because exploitation depends on a tool-result media path reaching the webchat embedding path, but the sink is a host-side file read before the user sees the rendered result.
Affected versions
- Affected:
>= 2026.4.7, < 2026.4.15 - Patched:
2026.4.15
Fix
OpenClaw 2026.4.15 hardens the webchat media path and the shared media resolver. Remote-host file:// URLs and Windows network paths are rejected before filesystem access, and audio embedding now enforces configured localRoots containment before stat or read operations.
Verified in v2026.4.15:
src/gateway/server-methods/chat-webchat-media.tsuses safe file-URL parsing, rejects Windows network paths, and callsassertLocalMediaAllowedbefore probing local audio files.src/media/web-media.tsrejects remote-hostfile://URLs, Windows network paths, and local-root bypasses on the shared media path.src/gateway/server-methods/chat-webchat-media.test.tscovers both remote-hostfile://rejection and local-root denial before filesystem access.
Fix commits included in v2026.4.15 and absent from v2026.4.14:
1470de5d3e0970856d86cd99336bb8ada3fe87davia PR #672936e58f1f9f54bca1fea1268ec0ee4c01a2af03ddevia PR #6729852ef42302ead9e183e6c8810e0a04ee4ef8ae9fcvia PR #67303 as defense-in-depth for trusted media passthrough anchoring
Thanks to @Kherrisan for reporting this issue.
Credited to Kherrisan.
Questions
- Which OpenClaw versions does CVE-2026-41389 affect?
From 2026.4.7 up to, but not including, 2026.4.15. The patched version is 2026.4.15.
- Can this leak Windows credentials?
Yes, per the advisory: a crafted UNC or network path can trigger network credential exposure on affected Windows deployments.
- What does the attacker need?
A tool-result media reference they control must reach the webchat embedding path. The CVSS vector shows no privileges and no user interaction.
- Is it exploited in the wild?
No source I read says so, and the entry has no CISA KEV data.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/pull/67293
- https://github.com/openclaw/openclaw/pull/67298
- https://github.com/openclaw/openclaw/pull/67303
- https://github.com/openclaw/openclaw/commit/1470de5d3e0970856d86cd99336bb8ada3fe87da
- https://github.com/openclaw/openclaw/commit/52ef42302ead9e183e6c8810e0a04ee4ef8ae9fc
- https://github.com/openclaw/openclaw/commit/6e58f1f9f54bca1fea1268ec0ee4c01a2af03dde
- https://nvd.nist.gov/vuln/detail/CVE-2026-41389
- https://www.vulncheck.com/advisories/openclaw-arbitrary-file-read-via-unvalidated-tool-result-media-paths
- https://github.com/advisories/GHSA-mr34-9552-qr95
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
