Affected versions
npmdecompress
- Affected versions
- < 4.2.1
- Fixed version
- 4.2.1
Exploitation
Description
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.
Links
- https://github.com/advisories/GHSA-qgfr-5hqp-vrw9
- https://github.com/kevva/decompress
- https://github.com/kevva/decompress/commit/967146e70f48be32ed1a69daa3941d681944d513
- https://github.com/kevva/decompress/issues/71
- https://github.com/kevva/decompress/pull/73
- https://nvd.nist.gov/vuln/detail/CVE-2020-12265
Credits
- tdunlap607

