GitHub Advisoryadvisory · npm

GHSA-p25h-9q54-ffvw OpenClaw has Zip Slip path traversal in tar archive extraction

HIGH Published 2026-03-02 Modified 2026-03-06 Official page ↗
Aliases
CVE-2026-28453
Ecosystem
npm
Packages
openclaw
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Weaknesses
CWE-22
Reviewed
2026-03-02

Affected packages

• npm openclaw: < 2026.2.14 → fixed in 2026.2.14

Description

Summary OpenClaw versions before 2026.2.14 did not sufficiently validate TAR archive entry paths during extraction. A crafted archive could use path traversal sequences (for example `../../...`) to write files outside the intended destination directory (Zip Slip). Affected Packages / Versions • Package: `openclaw` (npm) • Affected: `= 2026.2.14` Details The affected code path is `extractArchive()` in `src/infra/archive.ts`. Prior to 2026.2.14, TAR extraction used `tar.x({ cwd: destDir })` without rejecting traversal and absolute entry paths. This extraction is used by installation flows such as: • `openclaw plugins install …` • `openclaw hooks install …` Impact If a user installs an untrusted `.tar` / `.tgz` archive, an attacker can write files outside the extraction directory (within the permissions of the OpenClaw process). This can lead to configuration tampering and potentially code execution. Mitigation Upgrade to `openclaw >= 2026.2.14`. Avoid installing untrusted plugin/hook archives. Fix Commit(s) • `3aa94afcfd12104c683c9cad81faf434d0dadf87` OpenClaw thanks @xuemian168 for reporting.

Related

Alias · CVE (1)

  • CVE-2026-28453 OpenClaw versions prior to 2026.2.14 fail to validate TAR archive entry paths during extraction, allowing path traversal sequences to write… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References