Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

warpdotdev/warp
master @ 0979019
29
Fixes
16
CVEs
HIGH
Peak severity
17.9%
Coverage
Highlights
Denial of Service: 11 prior fixes. Scrutinize any change in this area.
app/src/ai/execution_profiles/profiles.rs: most-fixed (2 issues). Treat as high-risk during review.
13 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: Agent Mode dynamically interpolates paths into terminal environments without safe quoting, creating direct paths to arbitrary host execution. This requires robust tokenization and escaping before executing commands.
OS Command Injection: Launching URLs from WSL contexts without strict scheme validation and percent-encoding allowed attackers to inject arguments or execute arbitrary local commands on the Windows host.
Auth Bypass: Shell-emitted DCS terminal state hooks lacked session validation, allowing arbitrary unauthenticated PTY output to spoof lifecycle hooks and mutate session/terminal state.