Security context

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

emilk/egui
main @ 5d3e958
3
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Command Injection: 1 prior fix. Scrutinize any change in this area.
.github/workflows/enforce_branch_name.yml: most-fixed (1 issue). Treat as high-risk during review.
2 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: Branch names from pull requests are untrusted and were previously interpolated directly into shell commands, allowing arbitrary command execution. The fix moved the input into an environment variable, but any new workflow step that reuses the raw branch reference could reintroduce the flaw.
Path Traversal: The URL_SLUG derived from a PR branch name was used unsanitized as a target folder for the deployment action, enabling writes outside the intended directory. Sanitization to alphanumeric and dashes was applied, but other workflows or actions consuming branch-derived slugs may miss this.
Denial of Service: Invalid triangle data could reach the append operation without validation, risking crashes or hangs. The fix added a validation check, but other geometry processing paths (e.g., clipping, stroke tessellation) may still lack equivalent guards.