extract-zip arbitrary file write outside the destination directory via a symlink at the final path component
max-mapper extract-zip
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| extract-zip npm |
| No fix yet |
Original description
extract-zip through 2.0.1 containment-checks only the parent directory of each archive entry and never the entry's own final path component, so an archive containing two entries with identical names - a symlink whose target is outside the destination, followed by a regular file - writes through the planted symlink and yields an arbitrary file write outside the destination directory.
From the CVE record · seal