{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-59340","published":"2025-09-17T20:15:36.430000Z","last_modified":"2026-06-17T09:45:56.163000Z","status":"Analyzed","cvss":{"version":"3.1","score":10.0,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-1336"],"cpes":[{"criteria":"cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*","part":"a","vendor":"hubspot","product":"jinjava","version_end_excluding":"2.8.1"}],"cpes_truncated":false,"vendors":["hubspot"],"products":["hubspot/jinjava"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-m49c-g9wr-hv6v","ecosystem":"Maven","name":"com.hubspot.jinjava:jinjava","purl":"pkg:maven/com.hubspot.jinjava/jinjava","ranges":[{"introduced":"2.8.0","fixed":"2.8.1"}],"versions":["2.8.0"],"versions_truncated":false},{"advisory":"GHSA-m49c-g9wr-hv6v","ecosystem":"Maven","name":"com.hubspot.jinjava:jinjava","purl":"pkg:maven/com.hubspot.jinjava/jinjava","ranges":[{"introduced":"2.7.0","fixed":"2.7.5"}],"versions":["2.7.0","2.7.1","2.7.2","2.7.3","2.7.4"],"versions_truncated":false}],"severity":"critical","priority_score":75,"links":{"html_es":"/es/cve/CVE-2025-59340/","html_en":"/en/cve/CVE-2025-59340/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-59340","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-59340"},"untrusted":{"vendor_name":"Hubspot","product_name":"Jinjava","desc_en":"jinjava is a Java-based template engine based on django template syntax, adapted to render jinja templates. Priori to 2.8.1, by using mapper.getTypeFactory().constructFromCanonical(), it is possible to instruct the underlying ObjectMapper to deserialize attacker-controlled input into arbitrary classes. This enables the creation of semi-arbitrary class instances without directly invoking restricted methods or class literals. As a result, an attacker can escape the sandbox and instantiate classes such as java.net.URL, opening up the ability to access local files and URLs(e.g., file:///etc/passwd). With further chaining, this primitive can potentially lead to remote code execution (RCE). This vulnerability is fixed in 2.8.1.","affected":[{"untrusted_vendor":"HubSpot","untrusted_product":"jinjava","versions":[]}],"references":[{"url":"https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1","tags":["Patch"]},{"url":"https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.1","tags":["Release Notes"]},{"url":"https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v","tags":["Vendor Advisory"]}]}}