Highlights
Command Injection: 3 prior fixes. Scrutinize any change in this area.
scripts/gh.sh: most-fixed (2 issues). Treat as high-risk during review.
3 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: Unvalidated positional arguments and issue numbers passed to the gh.sh wrapper script could allow an LLM agent or attacker to inject arbitrary flags or execute unauthorized subcommands via the GitHub CLI. This risk is managed by enforcing strict numeric checks and restricting execution to a safe subset of commands.
Command Injection: LLM prompt instructions that trigger the editing of issue labels can be abused to inject shell commands through arbitrary label values. Restricting operations to validated pre-existing labels is necessary to prevent command execution inside the agent execution workspace.