GHSA-qcc4-p59m-p54m: OpenClaw: Sandbox dangling-symlink alias handling could bypass workspace-only write boundary
OpenClaw 2026.2.25 and earlier accepted dangling symlink hops during sandbox boundary checks, so workspace-only writes, including apply_patch, could land outside the workspace or sandbox root. The main impact is on the integrity of host files. The fix is in 2026.2.26.
Published Mar 12, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw confines some write operations to a workspace or sandbox root. In affected versions the boundary check let a dangling symlink hop pass when its target did not exist. A write through that path then resolved outside the root. The advisory names apply_patch as one affected flow. The weaknesses are link following and a time-of-check to time-of-use race (CWE-59 and CWE-367).
The CVSS vector is local with high attack complexity and low privileges. An attacker or a prompt-injected agent needs to get a symlink with a missing target into the workspace, then cause a patch or write through it. The result is that a file lands somewhere the operator did not intend, for example in a home directory or a config path the OpenClaw process can write. The advisory states the primary impact is integrity of host-side files. A sandbox that people rely on to contain agent edits does not hold for this case.
This advisory is related to the first-write escape on a missing symlink leaf fixed in the same release.
Who is affected
The npm package openclaw up to and including 2026.2.25. Workspace-only write flows are affected, including apply_patch.
npm ls -g openclaw
openclaw --versionThe patched version is 2026.2.26. Platforms matter little for the exposure, but the project's regression tests for the fix are skipped on Windows, so verified behavior is on POSIX systems.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.2.25
- Fixed in
- 2026.2.26
- Check
npm ls openclaw
How to fix it
Move to openclaw 2026.2.26 or newer.
npm install -g [email protected]The fix (commit 4fd29a3) resolves symlink targets through existing ancestors and fails closed when the canonical result escapes the configured boundary. The new tests show a patch adding a file through a dangling outside symlink is rejected with the error Symlink escapes sandbox root, while a dangling link that stays inside the root is still allowed. The sources give no workaround.
How to tell if you were hit
Look in agent workspaces for broken symlinks and for links that pass through an in-root alias to an outside directory:
find . -type l ! -exec test -e {} \; -printAfter the fix, rejected attempts raise an error with the text Symlink escapes sandbox root, which is worth searching for in logs once you upgrade. Beam records agent file access and shell commands, and its rules can flag writes outside the project.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
A sandbox boundary-validation gap in symlink alias handling allowed certain workspace-only write paths to be treated as in-boundary even when they could resolve outside the workspace/sandbox root.
Affected Packages / Versions
- Package: npm
openclaw - Affected versions:
<= 2026.2.25 - Latest published npm version included in affected range:
2026.2.25(checked on February 26, 2026) - Patched version (pre-set for release):
2026.2.26
Technical Details
In affected versions, dangling symlink hops could be accepted during boundary checks under missing-target conditions. For workspace-only write flows (including apply_patch), this could allow writes to resolve outside the configured workspace/sandbox boundary.
The fix resolves symlink targets through existing ancestors and fails closed when canonical resolution escapes the configured boundary.
Impact
- Boundary-confined write operations could be redirected outside the configured workspace/sandbox root.
- Primary impact is integrity of host-side files reachable from that path resolution.
Fix Commit(s)
4fd29a35bb85a1898ebff518364c467058b50e14
Release Process Note
patched_versions is pre-set to the planned next release (2026.2.26) so once npm 2026.2.26 is published, the advisory can be published without further field edits.
Thanks @tdjackey for reporting.
Credited to tdjackey.
Questions
- Which command is affected by this OpenClaw boundary bypass?
The advisory names workspace-only write flows including apply_patch, where a write could resolve outside the workspace or sandbox root through a dangling symlink.
- Is there a CVE for it?
No CVE is listed in the advisory data. It is tracked as GHSA-qcc4-p59m-p54m, affecting openclaw up to 2026.2.25.
- What does the fix do differently?
It resolves symlink targets through existing ancestors and refuses any path whose canonical form leaves the boundary.
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
