node-tar before 8.0.2: 19 flaws let crafted archives escape the folder or crash Node, update now
Node.js developers whose code or dependencies unpack tar archives with the tar package, especially archives someone else made.
How to fix it
You haveUpdate to
< 8.0.2→8.0.2
Check your version
Which version your project hasnpm ls tar
Update
In your projectnpm update tar npm ls tar
npm explain tar
npm audit
Crafted archives could put symlinks outside the extraction folder, forge file names or crash and hang Node. Most fixes landed in 8.0.0, a new major version, and 8.0.2 has them all. Version 7.5.24 fixes only one, so staying on 7 leaves the rest open.
If npm ls still shows an old version under another package, update that package, or add an "overrides" entry for this one in package.json.
Sources
- GHSA-xm6h-2993-3ch9
- GHSA-9hmx-4f52-v64x
- GHSA-wpwg-r92p-fjjh
- GHSA-rgjp-p5j7-w36x
- GHSA-qv2w-fc3h-pm27
- GHSA-mpg7-vg3p-wc3m
- GHSA-ffhw-4r4q-5cwv
- GHSA-7c32-79xj-j3jp
- GHSA-72fp-85cc-g945
- GHSA-ph3c-p786-j4rp
- GHSA-mhqm-9wj8-w7r4
- GHSA-jmj2-9c5q-vw73
- GHSA-hqgx-p3r3-2cfg
- GHSA-gvrf-jx37-rjv5
- GHSA-6wwr-g865-f46r
- GHSA-4pf9-5fpx-xmr6
- GHSA-3wwj-8j6r-q339
- GHSA-98v3-7xjr-fg83
- GHSA-25mm-r35j-6hgm