Security context

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

hubspot/jinjava
master @ 77ba2a2
8
Fixes
4
CVEs
CRITICAL
Peak severity
25.0%
Coverage
Highlights
Sandbox Bypass: 3 prior fixes. Scrutinize any change in this area.
src/main/java/com/hubspot/jinjava/el/ext/JinjavaBeanELResolver.java: most-fixed (3 issues). Treat as high-risk during review.
8 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 Escape: Attackers have repeatedly escaped the Jinjava sandbox by invoking forbidden methods or accessing restricted packages like Jackson ObjectMapper or java.lang.reflect through the Expression Language resolver. Failing to block these execution vectors leads to remote code execution and arbitrary class instantiation.
Sandbox Bypass: Incomplete package prefix matching and missing canonical name checks on evaluated classes have historically allowed sandbox bypasses. Attackers could craft class packages that exploit missing trailing dot validation to execute unauthorized Java operations.
Sandbox Bypass: Underlying template structures, such as loop variables destructured during 'ForTag' evaluation, can bypass standard EL resolver restrictions, introducing arbitrary Java class instantiation risks as tracked in CVE-2026-25526.