High, CVSS 7.5npmAmendedPublished
Arbitrary File Overwrite in fstream
CVE-2019-13173 · GHSA-xf7w-r453-m56c
- Affected
- npm fstream < 1.0.12
- Fixed in
- 1.0.12· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 1.0.12 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.