Security context

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

twigphp/Twig
3.x @ c326568
59
Fixes
0
CVEs
CRITICAL
Peak severity
43.3%
Coverage
Highlights
Sandbox Bypass: 33 prior fixes. Scrutinize any change in this area.
src/Extension/CoreExtension.php: most-fixed (13 issues). Treat as high-risk during review.
51 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.

Sandbox Bypass: Recurring bypasses via implicit __toString() calls on Traversable/array elements and arguments to always-allowed callables, fixed multiple times but with subtle gaps.
Sandbox Bypass: Property and ArrayAccess access in getAttribute and the 'column' filter bypassed sandbox allow-lists; checks were added after isset() or missing entirely.
Sandbox Bypass: Include paths (twig_include, template_from_string, preloaded templates) repeatedly missed checkSecurity() calls, allowing sandboxed templates to include unchecked ones.