Security context

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

pugjs/pug
master @ c323ed3
3
Fixes
1
CVEs
HIGH
Peak severity
Highlights
Code Injection: 3 prior fixes. Scrutinize any change in this area.
packages/pug-code-gen/index.js: most-fixed (3 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.

Code Injection: User-controlled template options like 'pretty', 'doctype', 'templateName', and 'globals' are compiled directly into executable JavaScript. If these options are not rigorously validated against strict allowlists or regular expressions, attackers can execute arbitrary code during compilation.