Highlights
Path Traversal: 5 prior fixes. Scrutinize any change in this area.
src/core/security/BashPathValidator.ts: most-fixed (2 issues). Treat as high-risk during review.
5 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: The project relies heavily on custom parsing of Bash tokens and paths to prevent unauthorized directory access. Multiple fixes were required to handle nested quotes, environment variables, and normalization bypasses inside the validator.
Command Injection: Process spawning using shell command shims on Windows did not properly escape shell metacharacters, allowing arbitrary shell code execution when launching external processes via cmd.exe.
Path Traversal: Platform-specific directory traversal was possible on Windows systems due to inconsistent directory separator normalization in prefix checks (e.g., path.sep vs forward slashes).