GitHub Advisory Database
GHSA-x2mc-8fgj-3wmr
Improper Input Validation in tar-fs
Details
A vulnerability was found in tar-fs before 1.16.2. An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content replaces the existing file content.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | tar-fs | All versions before 1.16.2 (fixed in 1.16.2) |