CVE-2026-27008: OpenClaw hardened the skill download target directory validation
OpenClaw before 2026.2.15 did not strictly validate the targetDir value that a skill's frontmatter gives for a download install. The path could resolve outside the per-skill tools directory, so the admin-only skills.install flow could write files outside the intended install sandbox. Fixed in openclaw 2026.2.15.
Published Feb 18, 2026 · Updated Feb 20, 2026 · Analysis Nov 9, 2026
What an attacker can do
A skill can declare a download install step with a targetDir in its frontmatter. In the affected versions, that value was used without strict validation, so a path with parent-directory segments or an absolute path could land outside the per-skill tools directory. The download installer then wrote the downloaded files at that location.
The flaw sits in the admin-only skills.install flow, which is why the CVSS 4.0 vector needs high privileges and local access. The realistic attack is a malicious or tampered skill that an administrator installs. The skill author controls the frontmatter, and the admin triggers the write.
The effect is an arbitrary file write with high integrity impact: a file placed in a startup directory, a shell profile or an agent config path can lead to later code execution. The advisory states only the out-of-sandbox write. It gives no code execution chain.
Who is affected
Affected: the npm package openclaw below 2026.2.15 (up to and including 2026.2.14). Exposure comes from installing skills with a download-type install step from sources you do not control.
npm ls -g openclaw
openclaw --versionReview installed skills for a targetDir in their frontmatter that is absolute or contains ../ segments.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.2.15
- Fixed in
- 2026.2.15
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.15 or later:
npm install -g [email protected]The fix restricts skill download target paths to the per-skill tools directory (commit 2363e1b0, with test coverage in b6305e97). The release notes say it prevents arbitrary file writes. The advisory lists no workaround. Until you upgrade, install only skills you have reviewed, and read the frontmatter before running skills.install.
How to tell if you were hit
Inspect skill frontmatter for targetDir values that point outside the skill's own tools directory. Look for files created or changed outside the OpenClaw skills tree around the time of a skills.install run, especially in home directory dotfiles, startup folders and OpenClaw config paths. Review the Gateway log for skills.install calls and which skill source they came from.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.2.14 - Fixed in: planned release
2026.2.15
Impact
A bug in download skill installation allowed targetDir values from skill frontmatter to resolve outside the per-skill tools directory if not strictly validated. In the admin-only skills.install flow, this could write files outside the intended install sandbox.
Fix Commit(s)
- 2363e1b08 fix(security): restrict skill download target paths
- b6305e972 test(skills): split installer security coverage
Acknowledgement
Thanks @Adam55A-code for reporting.
Credited to Adam55A-code.
Questions
- Who can trigger CVE-2026-27008?
The advisory describes the admin-only skills.install flow. Someone has to install a skill whose frontmatter has a crafted targetDir, so the practical risk is a malicious skill.
- What does the fix change?
It restricts the download installer's target path to the per-skill tools directory, so skill installs cannot write elsewhere.
- Which version is patched?
openclaw 2026.2.15. Version 2026.2.14 and earlier are affected.
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
