Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. fstream
  4. ›
  5. CVE-2019-13173

CVE-2019-13173: Arbitrary file overwrite

July 2, 2019 (updated August 13, 2019)

fstream is 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2019-13173
  • www.npmjs.com/advisories/886

Code Behaviors & Features

Detect and mitigate CVE-2019-13173 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.12

Fixed versions

  • 1.0.12

Solution

Upgrade to version 1.0.12 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

npm/fstream/CVE-2019-13173.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:54 +0000.