HighGHSA-gfjr-3jmm-4g9vCVE-2015-8860

Symlink Arbitrary File Overwrite in tar

Published 24 Oct 2017 · Updated 8 Nov 2023

Affected package

tarnpm
Affected
<2.0.0
Fixed in
2.0.0
Update to the fixed version for your release line, for example:npm install tar@2.0.0

Details

Versions of tar prior to 2.0.0 are affected by an arbitrary file write vulnerability. The vulnerability occurs because tar does not verify that extracted symbolic links to not resolve to targets outside of the extraction root directory.

Recommendation

Update to version 2.0.0 or later

Is GHSA-gfjr-3jmm-4g9v 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 tar, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.