Security context

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

aquasecurity/trivy
main @ dfd53cf
14
Fixes
1
CVEs
HIGH
Peak severity
40.0%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
GitHub: most-fixed (3 issues). Treat as high-risk during review.
6 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: Untrusted context parameters parsed inside CI/CD bash run blocks led to command injection capabilities. Security fixes introduced strict mapping of github context variables into environment variables rather than using inline template expressions.
Path Traversal: Extracted OCI artifact paths and local sandbox boundaries could be escaped, letting attackers write or read outside expected directories. Fixing this required explicit prefix verification and filepath.IsLocal validation.
Auth Bypass: Relying on untrusted webhook properties like the comment author association instead of making authenticated API queries to check direct write permissions led to authorization bypasses.