Highlights
Command Injection: 2 prior fixes. Scrutinize any change in this area.
src/bin.mts: 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.
Command Injection: Untrusted matched filenames containing shell metacharacters could trigger arbitrary code execution when evaluated or passed to process spawning functions under unsafe shell environments. This is exacerbated by command-line execution helpers that run processes in the foreground.
Command Injection: Allowing arbitrary or unsafe `--shell` option flags on unsupported environments enables malicious configurations to spawn arbitrary system shells, leading to system compromise.