Highlights
Path Traversal: 3 prior fixes. Scrutinize any change in this area.
lib/tmp.js: most-fixed (2 issues). Treat as high-risk during review.
2 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.
Path Traversal: Unsanitized input in configuration options like prefix, postfix, or template allows attackers to traverse outside the designated temporary directory and create files at arbitrary locations. Robust type checking and strict canonicalization are required to prevent relative path escapes.
Path Traversal: Inadequate type verification on user-supplied options allows attackers to pass non-string values (such as arrays or objects) that bypass relative path validation checks, resulting in path traversal after string coercion during file generation.