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.