Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade adm-zip to version 0.6.1 or higher.
adm-zip is a JavaScript implementation for zip data compression for NodeJS.
Affected versions of this package are vulnerable to Incorrect Behavior Order via duplicate entry names in a ZIP archive processed by zipFile.js. Because adm-zip stores all entries in entryList (used by extractAllTo()) but only the last occurrence of a name in entryTable (used by getEntry()), an attacker can supply an archive containing two entries with the same name. An application that validates entry content by calling getEntry() before extracting will inspect one file, while extractAllTo() writes a different file to disk, allowing the attacker to bypass content validation and land arbitrary content on the filesystem.