GitHub Advisory Database
GHSA-qgfr-5hqp-vrw9
Path Traversal in decompress
Details
Versions of decompress prior to 4.2.1 are vulnerable to Arbitrary File Write. The package fails to prevent extraction of files with relative paths, allowing attackers to write to any folder in the system by including filenames containing../.
Recommendation
Upgrade to version 4.2.1 or later.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | decompress | All versions before 4.2.1 (fixed in 4.2.1) |