Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

npm/fstream
master @ bffea43
5
Fixes
1
CVEs
HIGH
Peak severity
66.7%
Coverage
Highlights
Path Traversal: 3 prior fixes. Scrutinize any change in this area.
lib/writer.js: most-fixed (5 issues). Treat as high-risk during review.
3 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Arbitrary File Write: Attackers can exploit hardlinks pointing to existing system files to overwrite arbitrary locations during archive extraction. This issue is tracked under CVE-2019-13173.
Path Traversal: Standard ownership changes (chown) follow symbolic links, allowing malicious archives to alter the ownership of arbitrary files on the system. This is mitigated by explicitly using lchown.
Path Traversal: Standard chmod operations follow symlinks by default, leading to unauthorized permission modifications of arbitrary target files. Safely using lchmod prevents this behavior.