Highlights
Path Traversal: 6 prior fixes. Scrutinize any change in this area.
app/desktop/git_sync/git_sync_api.py: most-fixed (4 issues). Treat as high-risk during review.
12 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: User-supplied paths for repository cloning and configuration are prone to directory traversal. If unvalidated, these paths allow arbitrary file read/write operations outside of the designated project directory. Strict containment checks and canonicalization must be consistently applied.
Auth Bypass: The application exposes sensitive FastAPI endpoints that allow model generations and resource deletions. Failure to decorate these handlers with explicit agent permission policies permits unauthorized or untrusted autonomous agents to invoke dangerous API actions without explicit user approval.
Sandbox Bypass: The Jinja2 template environment used to render user templates is vulnerable to sandbox escape attempts using standard Python magic attributes. Attackers can leverage properties like __mro__ and __subclasses__ on untrusted inputs to execute arbitrary code.