{"id":"CVE-2026-25526","published":"2026-02-04T21:26:58Z","modified":"2026-02-05T21:01:00Z","title":"JinJava Bypass through ForTag leads to Arbitrary Java Execution","vendor":"HubSpot","product":"jinjava","tier":"tail","description":{"text":"JinJava is a Java-based template engine based on django template syntax, adapted to render jinja templates. Prior to versions 2.7.6 and 2.8.3, JinJava is vulnerable to arbitrary Java execution via bypass through ForTag. This allows arbitrary Java class instantiation and file access bypassing built-in sandbox restrictions. This issue has been patched in versions 2.7.6 and 2.8.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01069,"percentile":0.64267,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/HubSpot/jinjava/security/advisories/GHSA-gjx9-j8f8-7j74","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/HubSpot/jinjava/commit/3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998","tags":["x_refsource_MISC"]},{"url":"https://github.com/HubSpot/jinjava/commit/c7328dce6030ac718f88974196035edafef24441","tags":["x_refsource_MISC"]},{"url":"https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.7.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.3","tags":["x_refsource_MISC"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":12.85},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-02-10","earliestUrl":"https://github.com/av4nth1ka/jinjava-cve-2026-25526-poc","repos":[{"name":"av4nth1ka/jinjava-cve-2026-25526-poc","url":"https://github.com/av4nth1ka/jinjava-cve-2026-25526-poc","stars":3,"created":"2026-02-10"}]},"first":{"date":"2026-02-10","source":"PoC-in-GitHub","url":"https://github.com/av4nth1ka/jinjava-cve-2026-25526-poc"},"provenance":"source"},"vendorSlug":"hubspot","affectedVersions":[{"vendor":"HubSpot","product":"jinjava","versions":["< 2.7.6","< 2.8.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-05T21:00:49.634832Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.hubspot.jinjava:jinjava","vulnerableRanges":[">=2.8.0, <2.8.3","<2.7.6"],"patched":["2.8.3","2.7.6"],"from":["GHSA-gjx9-j8f8-7j74"],"provenance":"source"}],"summary":{"text":"The flaw is a sandbox bypass in the ForTag component of JinJava, a Java-based template engine that renders Jinja-style templates, which lets template content escape the built-in restrictions. An attacker who can supply template input can use this bypass to instantiate arbitrary Java classes and access files, with no authentication, no user interaction, and only network access to the application needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:22Z"},"euvd":{"id":"EUVD-2026-5336","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hubspot-jinjava-cve-2020-12668","parents":[{"from":"CVE-2025-59340","to":"CVE-2026-25526","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.hubspot.jinjava:jinjava","fromFixed":"2.8.1","toFixed":"2.8.3","daysApart":140},{"kind":"same-code","provenance":"machine","files":["src/main/java/com/hubspot/jinjava/el/ext/JinjavaBeanELResolver.java"],"commits":["https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1","https://github.com/HubSpot/jinjava/commit/3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998","https://github.com/HubSpot/jinjava/commit/c7328dce6030ac718f88974196035edafef24441"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.44,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2020-12668","to":"CVE-2026-25526","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/main/java/com/hubspot/jinjava/el/ext/JinjavaBeanELResolver.java"],"commits":["https://github.com/HubSpot/jinjava/commit/5dfa5b87318744a4d020b66d5f7747acc36b213b","https://github.com/HubSpot/jinjava/commit/1b9aaa4b420c58b4a301cf4b7d26207f1c8d1165","https://github.com/HubSpot/jinjava/commit/3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998","https://github.com/HubSpot/jinjava/commit/c7328dce6030ac718f88974196035edafef24441"],"basis":"shared function","functions":["isRestrictedClass"]},{"kind":"similar","provenance":"machine","score":0.47,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2018-18893","published":"2019-01-03","fixed":"2.4.6","kev":false},{"cve":"CVE-2020-12668","published":"2021-02-19","fixed":"2.5.4","kev":false},{"cve":"CVE-2025-59340","published":"2025-09-17","fixed":"2.8.1","kev":false},{"cve":"CVE-2026-25526","published":"2026-02-04","fixed":"2.8.3","kev":false}],"package":"Maven:com.hubspot.jinjava:jinjava"}}