VDB
Sign up
MEDIUM5.5

GHSA-3v6h-hqm4-2rg6

Arbitrary File Write in adm-zip

Quick fix

GHSA-3v6h-hqm4-2rg6 — adm-zip: upgrade to the fixed version with the command below.

npm install adm-zip@0.4.11

Details

Versions of `adm-zip` before 0.4.9 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.4.9 or later.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/adm-zip
Introduced in: 0Fixed in: 0.4.11
Fixnpm install adm-zip@0.4.11

References