GitHub Advisoryadvisory · npm

GHSA-jmr9-qjv8-65gv extract-zip unvalidated symlink path traversal

HIGH Published 2026-06-26 Modified 2026-08-12 Official page ↗
Aliases
CVE-2026-56876
Ecosystem
npm
Packages
extract-zip
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-08-12

Affected packages

• npm extract-zip: <= 2.0.1 (no fix yet)

Description

extract-zip does not validate symlink targets when extracting zip archives. When processing a malicious zip file containing a symlink with a relative path like '../../../../etc/passwd', extract-zip will extract the symlink without validation, allowing it to point outside the extraction directory. Depending on how extract-zip is used, an attacker could read or write to arbitrary files.

Related

Alias · CVE (1)

  • CVE-2026-56876 extract-zip does not validate symlink targets when extracting zip archives. vulnerability

Weakness · CWE (1)

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

References