Security context

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

rescript-lang/rescript
master @ 3fd24bb
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Command Injection: 1 prior fix. Scrutinize any change in this area.
.github/workflows/ci.yml: 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: Using direct GitHub template expressions like `${{ github.ref }}` in inline run scripts allows untrusted branch names to inject malicious shell commands, potentially compromising the CI runner and repository secrets.
Memory Injury: Bypassing safety checks using `Bytes.unsafe_set` in core string helper functions can lead to out-of-bounds writes (buffer overflows) if loop boundaries are incorrect, causing instability or memory corruption in the compiler toolchain.