Highlights
Auth Bypass: 6 prior fixes. Scrutinize any change in this area.
src/capabilities/permissions.ts: most-fixed (7 issues). Treat as high-risk during review.
9 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.
Auth Bypass: The permission subsystem has suffered from multiple flaws including state-bypass hacks (auto-approving pending requests), incomplete command splitting during pattern matching, and missing approval handoffs on remote transport channels like Telegram. This makes the approval engine the most critical single point of failure.
Path Traversal: Filesystem boundary and directory scope checks have repeatedly failed due to non-canonicalized paths and platform-specific separator mismatches (especially on Windows systems), allowing tools to read or write files outside their designated boundaries.
Command Injection: Executing shell utilities directly with unsanitized inputs—such as committing files using unescaped string interpolations in standard exec calls—allows arbitrary command injection. Use of files or parameter-passing alternatives is required.