CVE-2026-26329: OpenClaw has a path traversal in browser upload allows local file read
OpenClaw before 2026.2.14 lets an authenticated Gateway client read arbitrary files from the Gateway host through the browser tool's upload action. Absolute paths and traversal sequences went to Playwright's setInputFiles() unchecked. Upgrade openclaw to 2026.2.14.
Published Feb 18, 2026 · Updated Feb 20, 2026 · Analysis Nov 9, 2026
What an attacker can do
Two entry points accept upload paths: POST /tools/invoke with {"tool":"browser","action":"upload"} and POST /hooks/file-chooser. The server passed the supplied paths to Playwright's setInputFiles() without confining them to a safe root. Playwright then read the named local files and attached them to a page-level file input. Page JavaScript (for example FileReader) or agent and browser snapshots can then carry the contents out.
This is not a drive-by flaw. The attacker needs to reach the Gateway HTTP surface, hold valid Gateway auth (bearer token or password), and have the browser tool permitted by tool policy with browser support enabled. In default setups the Gateway binds to loopback and onboarding generates a token even for loopback, which limits exposure. If an operator exposes the Gateway on a LAN, tailnet, reverse proxy or tunnel, the risk rises with it.
What the attacker gets is arbitrary file read as the Gateway process: SSH keys, cloud credentials, .env files and OpenClaw's own configuration and tokens.
Who is affected
Affected: the npm package openclaw below 2026.2.14, including 2026.2.13. The exposure depends on the Gateway bind address, on who holds a Gateway token, and on whether tool policy permits the browser tool.
npm ls -g openclaw
openclaw --versionAlso check whether the Gateway listens beyond loopback.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.2.14
- Fixed in
- 2026.2.14
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.14 or later:
npm install -g [email protected]The fix (commit 3aa94afc) confines upload paths to OpenClaw's temp uploads root, DEFAULT_UPLOAD_DIR, and rejects traversal and escape paths. The release notes describe it as hardening the browser control file upload and download helpers. The advisory gives no workaround. Until you upgrade, keep the Gateway on loopback, protect the token, and deny the browser tool in tool policy where it is not needed.
How to tell if you were hit
Review Gateway request logs for POST /tools/invoke calls with tool set to browser and action upload, and for POST /hooks/file-chooser, whose paths are absolute or contain ../ or point outside the uploads directory. Look at browser sessions that attached files such as ~/.ssh/id_rsa or .env, and at outbound traffic from pages right after. If an agent drives the browser tool, Beam's record of agent file access and tool calls can show which paths were touched.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Authenticated attackers can read arbitrary files from the Gateway host by supplying absolute paths or path traversal sequences to the browser tool's upload action. The server passed these paths to Playwright's setInputFiles() APIs without restricting them to a safe root.
Severity remains High due to the impact (arbitrary local file read on the Gateway host), even though exploitation requires authenticated access.
Exploitability / Preconditions
This is not a "drive-by" issue.
An attacker must:
- Reach the Gateway HTTP surface (or otherwise invoke the same browser control hook endpoints).
- Present valid Gateway auth (bearer token / password), as required by the Gateway configuration.
- In common default setups, the Gateway binds to loopback and the onboarding wizard generates a gateway token even for loopback.
- Have the
browsertool permitted by tool policy for the target session/context (and have browser support enabled).
If an operator exposes the Gateway beyond loopback (LAN/tailnet/custom bind, reverse proxy, tunnels, etc.), the impact increases accordingly.
Affected Packages / Versions
- Package:
openclaw(npm) - Vulnerable:
< 2026.2.14(includes latest published2026.2.13) - Patched:
>= 2026.2.14(planned next release)
Details
Entry points:
POST /tools/invokewith{"tool":"browser","action":"upload",...}POST /hooks/file-chooser(browser control hook)
When the upload paths are not validated, Playwright reads the referenced files from the local filesystem and attaches them to a page-level <input type="file">. Contents can then be exfiltrated by page JavaScript (e.g. via FileReader) or via agent/browser snapshots.
Impact: arbitrary local file read on the Gateway host (confidentiality impact).
Fix
Upload paths are now confined to OpenClaw's temp uploads root (DEFAULT_UPLOAD_DIR) and traversal/escape paths are rejected.
This fix was implemented internally; the reporter provided a clear reproduction and impact analysis.
Fix commit(s):
- 3aa94afcfd12104c683c9cad81faf434d0dadf87
Thanks @p80n-sec for reporting.
Credited to p80n-sec.
Questions
- Does CVE-2026-26329 need authentication?
Yes. The attacker needs valid Gateway auth, and the browser tool must be permitted by tool policy. The advisory says this is not a drive-by issue.
- Is the default setup exposed?
By default the Gateway binds to loopback and onboarding creates a token, which narrows exposure. Exposing the Gateway on a LAN, tailnet or tunnel raises the impact.
- Which version fixes it?
openclaw 2026.2.14. Uploads are confined to the temp uploads root from then on.
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
