Security context

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

pebbletemplates/pebble
master @ e6e26bf
6
Fixes
0
CVEs
HIGH
Peak severity
60.0%
Coverage
Highlights
Cache Poisoning: 2 prior fixes. Scrutinize any change in this area.
Loader.java: most-fixed (2 issues). Treat as high-risk during review.
4 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.

Path Traversal: FileLoader constructs files from template names without mandatory sandboxing; a single fix added base-directory enforcement and traversal protection, but sibling loaders or sub-loaders may still allow escaping the sandbox.
Code Injection: Attribute resolution invoked arbitrary methods via reflection; the fix replaced an unsafe flag with a blacklist validator, but alternate resolvers or custom validators may not enforce the same blacklist.
Security Bypass: The getClass access check was case-sensitive, allowing bypass via 'getclass'; the fix made it case-insensitive, but other method-name checks (e.g., getClass variants, reflection helpers) may still be case-sensitive.