MediumGHSA-884w-698f-927fCVE-2018-1002203
Arbitrary File Write via Archive Extraction in unzipper
Published 27 Jul 2018 · Updated 8 Nov 2023
Affected package
unzippernpm
- Affected
- <0.8.13
- Fixed in
- 0.8.13
Update to the fixed version for your release line, for example:
npm install unzipper@0.8.13Details
Versions of unzipper before 0.8.13 are vulnerable to arbitrary file write when used to extract a specifically crafted archive that contains path traversal filenames (../../file.txt for example).
Recommendation
Update to version 0.3.18 or later.
Is GHSA-884w-698f-927f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected unzipper, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-1002203
- Linkgithub.com/ZJONSSON/node-unzipper/pull/59
- Linkgithub.com/ZJONSSON/node-unzipper/commit/2220ddd5b58f6252069a4f99f9475441ad0b50cd
- Linkhackerone.com/reports/362119
- Advisorygithub.com/advisories/GHSA-884w-698f-927f
- Linkgithub.com/snyk/zip-slip-vulnerability
- Linksnyk.io/research/zip-slip-vulnerability
- Linksnyk.io/vuln/npm:unzipper:20180415
- Linkwww.npmjs.com/advisories/680
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.