CVE-2019-13173: Arbitrary File Overwrite in fstream

fstream Updated 02 Oct 2025

Summary

30/05/2019
Yes i
High
7.5

CVE-2019-13173: Arbitrary File Overwrite in fstream. Affects fstream versions < 1.0.12. Fixed in 1.0.12. How to fix ↓

Also tracked for

The same CVE-2019-13173 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The fstream package is an npm module that provides file system streaming for Node.js. It allows users to read from and write to files and directories in a streaming manner. The package is widely used in various Node.js applications for file manipulation tasks.

Vulnerability Detail

Versions of fstream prior to 1.0.12 are vulnerable to Arbitrary File Overwrite. When extracting tarballs that contain a hardlink to a file already existing in the system, and a file in the tarball matches the hardlink, the system's file will be overwritten with the contents of the extracted file. The vulnerable function in the package is fstream.DirWriter(). This vulnerability can lead to unauthorized modification or deletion of critical files on the system, potentially causing data loss or unauthorized access.

How To Fix

Latest published version: 1.0.12 as of 22 Oct 2026

npm install fstream@1.0.12

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The fstream package prior to version 1.0.12 is vulnerable to Arbitrary File Overwrite, which can result in unauthorized modification or deletion of critical files on the system. It is crucial to upgrade to version 1.0.12 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for fstream →

Share this vulnerability

FAQ

This vulnerability allows an attacker to overwrite existing files on the system, potentially leading to data loss or unauthorized access.

Versions prior to 1.0.12 of the fstream package are affected.

The vulnerable function is fstream.DirWriter().

No, upgrading to version 1.0.12 or later is the recommended solution.

How To Fix

Latest published version: 1.0.12 as of 22 Oct 2026

npm install fstream@1.0.12

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback