ADVISORIES

GitHub Advisory Database

GHSA-xf7w-r453-m56c

Arbitrary File Overwrite in fstream

Details

Versions of fstream prior to 1.0.12 are vulnerable to Arbitrary File Overwrite. Extracting tarballs containing a hardlink to a file that already exists in the system and a file that matches the hardlink will overwrite the system's file with the contents of the extracted file. The fstream.DirWriter() function is vulnerable.

Recommendation

Upgrade to version 1.0.12 or later.

Affected packages

EcosystemPackageAffected versions
npmfstream
All versions before 1.0.12 (fixed in 1.0.12)

References