CVE-2026-34426: OpenClaw: Windows media loaders accepted remote-host file URLs before local path validation
On Windows, OpenClaw before 2026.3.22 accepted remote-host file: URLs and UNC paths as if they were local media files. A crafted path made the agent's host reach out to an attacker-controlled network share. Upgrade openclaw to 2026.3.22 or later.
Published Mar 26, 2026 · Updated Apr 10, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw loads local media from file: URLs and paths, after checks that the file is local and inside allowed roots. On Windows, a URL like file://attacker/share/evil.png or a UNC path such as \\server\share\x.png names a file on another machine. The loaders in src/media/web-media.ts and the media-understanding attachment code passed these to filesystem calls, including realpath, before any local-path validation. The result is CWE-40, a UNC share path traversal.
When Windows opens such a path, it contacts the remote SMB server. That typically sends the user's NTLM authentication attempt to the attacker's host, which can be captured for cracking or relay, and it lets the attacker supply the file content the agent then treats as local. The attacker needs a way to get a path or attachment in front of the agent, such as a chat message, so the CVSS 4.0 vector sets user interaction as passive and the impact as low confidentiality.
Only Windows hosts are affected by the UNC part. Teams that run OpenClaw on Windows with messaging channels that accept attachments are the ones exposed.
Who is affected
Affected: the openclaw npm package before 2026.3.22, on Windows hosts. Linux and macOS are not described as affected by the UNC path check. Check the installed version:
npm ls openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- < 2026.3.22
- Fixed in
- 2026.3.22
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.22 or later; 2026.3.23 and 2026.3.23-2 keep the fix.
npm install -g openclaw@latestThe fix commits 4fd7feb0fd4ec16c48ed983980dba79a09b3aaf5 and 93880717f1cd34feaa45e74e939b7a5256288901 add src/infra/local-file-access.ts. It accepts file: URLs only with an empty host or localhost, and rejects UNC paths (\\ and \\?\UNC\, plus // forms) before any filesystem access. Errors use the codes invalid-file-url and network-path-not-allowed. The advisory names no workaround; outbound SMB (TCP 445) blocked at the firewall limits the leak but is not a fix.
How to tell if you were hit
Look in OpenClaw logs for media loads that name file:// URLs with a host other than localhost, or paths beginning with \\ or //. On the network side, look for outbound SMB connections (TCP 445) from the OpenClaw host to external addresses, and for Windows security events showing NTLM authentication to unfamiliar servers. After patching, blocked attempts log the invalid-file-url or network-path-not-allowed error codes.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Windows local-media handling accepted remote-host file URLs and UNC-style paths before local-path validation, so network-hosted file targets could be treated as local content.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected: < 2026.3.22
- Fixed: >= 2026.3.22
- Latest released tag checked:
v2026.3.23-2(630f1479c44f78484dfa21bb407cbe6f171dac87) - Latest published npm version checked:
2026.3.23-2
Fix Commit(s)
4fd7feb0fd4ec16c48ed983980dba79a09b3aaf593880717f1cd34feaa45e74e939b7a5256288901
Release Status
The fix shipped in v2026.3.22 and remains present in v2026.3.23 and v2026.3.23-2.
Code-Level Confirmation
- src/infra/local-file-access.ts now rejects remote-host file: URLs and UNC/network paths as non-local input.
- src/media/web-media.ts, src/media-understanding/attachments.normalize.ts, and src/agents/sandbox-paths.ts all route through the shared local-file guard.
OpenClaw thanks @RacerZ-fighting, @Fushuling for reporting.
Credited to RacerZ-fighting, Fushuling.
Questions
- Does CVE-2026-34426 affect OpenClaw on Linux or macOS?
The advisory is about Windows media loaders accepting remote-host file URLs and UNC paths. The fix checks network paths only when the platform is win32, though the remote-host file: URL rejection applies on every platform.
- What does the attacker get?
A way to make the host contact a network share they control, with low confidentiality impact in the CVSS vector. Credential capture over SMB is the typical risk of that behavior, though the advisory does not say it.
- Is file://localhost still allowed?
Yes. The fix tests confirm that file://localhost/... still loads.
- Is it exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog. The EPSS score is 0.0026.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/security/advisories/GHSA-h3x4-hc5v-v2gm
- https://github.com/openclaw/openclaw/commit/4fd7feb0fd4ec16c48ed983980dba79a09b3aaf5
- https://github.com/openclaw/openclaw/commit/93880717f1cd34feaa45e74e939b7a5256288901
- https://nvd.nist.gov/vuln/detail/CVE-2026-34426
- https://github.com/openclaw/openclaw/pull/59182
- https://github.com/openclaw/openclaw/commit/b57b680c0c34de907d57f60c38fb358e82aef8f7
- https://www.vulncheck.com/advisories/openclaw-approval-bypass-via-environment-variable-normalization
- https://github.com/advisories/GHSA-h3x4-hc5v-v2gm
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
