Security context

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

halostatue/diff-lcs
main @ d7361aa
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Command Injection: 1 prior fix. Scrutinize any change in this area.
.github/workflows: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix 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: The ldiff tool parsed user-supplied filenames directly using 'IO.read', which executes shell commands if a filename contains a pipe ('|') character. This can lead to arbitrary code execution when processing untrusted inputs.
Privilege Escalation: Over-privileged GITHUB_TOKEN permissions and enabled credential persistence in CI/CD workflows exposed the build environment to potential privilege escalation if downstream dependencies or actions were compromised.