Security context

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

iris-contrib/pongo2
master @ 0738cc4
2
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Path Traversal: 1 prior fix. Scrutinize any change in this area.
template_sets.go: most-fixed (2 issues). 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.

Sandbox Escape: A direct file read bypassed the sandbox directory restrictions, allowing templates to read arbitrary files. The fix routes FromFile through resolveFilename, but any other direct ReadFile path could repeat this escape.
Path Traversal: Template file operations could read outside permitted directories due to missing allowlist enforcement. The fix introduced directory allowlists and banned tags/filters, but incomplete pattern matching or alternate loaders may still allow traversal.