CVE-2026-26972: OpenClaw has a Path Traversal in Browser Download Functionality
OpenClaw's browser download helpers wrote files to a caller-supplied path without limiting it to the downloads directory. Through the gateway routes `/download` and `/wait/download`, an authenticated caller could write outside the intended temp folder. Versions 2026.1.12 through 2026.2.12 are affected. Fixed in 2026.2.13.
Published Feb 18, 2026 · Updated Feb 20, 2026 · Analysis Nov 1, 2026
What an attacker can do
waitForDownloadViaPlaywright and downloadViaPlaywright in src/browser/pw-tools-core.downloads.ts took the output path as given. The browser control gateway routes /wait/download and /download passed the path field through unchecked, so a value like ../../x placed the downloaded file outside the OpenClaw downloads directory.
The advisory limits who can do this. The AI agent tool schema has no download action, so a prompt-injected agent cannot reach it that way. The caller needs authenticated CLI access or a valid gateway RPC token. That explains the local vector and high privileges in the 6.7 score.
A holder of that access can overwrite files the OpenClaw process can write, with content that the browser downloaded. That can mean replacing a config, a script or a startup file, which escalates to code execution as the OpenClaw user. For most teams the risk is a stolen or shared gateway token rather than an open internet attack.
Who is affected
The openclaw npm package from 2026.1.12 up to and including 2026.2.12. Versions from 2026.2.13 are fixed. Check the installed version:
npm ls -g openclawOr run openclaw --version. The exposure exists wherever the browser control gateway is enabled and tokens or CLI access are held by people or services you do not fully trust.
openclaw
- Ecosystem
- npm
- Affected
- >= 2026.1.12, <= 2026.2.12
- Fixed in
- 2026.2.13
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.13 or later.
npm install -g [email protected]The fix commit adds resolvePathWithinRoot() in src/browser/routes/path-output.ts. The /download and /wait/download routes resolve path against the downloads directory, /tmp/openclaw/downloads with an os.tmpdir() fallback, and return HTTP 400 for anything that escapes it. The same commit applies the rule to /trace/stop. The advisory lists no workaround.
How to tell if you were hit
Look in gateway logs for requests to /download or /wait/download whose path contains .. or an absolute path outside /tmp/openclaw/downloads. Check for files recently written outside that directory by the OpenClaw user, especially in config, shell startup or autostart locations. Rotate gateway RPC tokens if you cannot rule out misuse. After patching, traversal attempts show up as HTTP 400 responses with the message "Invalid path: must stay within" the downloads directory.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
OpenClaw browser download helpers accepted an unsanitized output path. When invoked via the browser control gateway routes, this allowed path traversal to write downloads outside the intended OpenClaw temp downloads directory.
This issue is not exposed via the AI agent tool schema (no download action). Exploitation requires authenticated CLI access or an authenticated gateway RPC token.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected: >=2026.1.12, <=2026.2.12
- Fixed: >=2026.2.13
Details
Affected code: src/browser/pw-tools-core.downloads.ts (waitForDownloadViaPlaywright, downloadViaPlaywright).
Fixed entrypoints (as of 2026.2.13):
- Gateway browser control routes
/wait/downloadand/downloadnow restrictpathtoDEFAULT_DOWNLOAD_DIRviaresolvePathWithinRoot.
Fix Commit(s)
- 7f0489e4731c8d965d78d6eac4a60312e46a9426
Mitigation
Upgrade to openclaw >=2026.2.13.
Thanks @locus-x64 for reporting.
Credited to locus-x64.
Questions
- Can an AI agent trigger CVE-2026-26972 through prompt injection?
The advisory says no. The agent tool schema has no
downloadaction. The caller needs authenticated CLI access or a gateway RPC token.- Which OpenClaw versions are affected?
2026.1.12 through 2026.2.12. Upgrade to 2026.2.13 or later.
- What does the fix do to a bad path?
It returns HTTP 400 before any Playwright call runs, if the resolved path is empty-relative, starts with
..or falls outside the downloads directory.- Is it exploited in the wild?
No source says so, and it is not in CISA's KEV catalog.
References
Read for this analysis:
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
