Vulnerability

CVE-2025-59340

criticalCVSS 3.1 10.0Published 17 Sep 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

Description

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 products

From the NVD's configuration data (CPE), vendor first.

  • Hubspot jinjava

Weakness type

References

  • github.com /HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af82…
  • github.com /HubSpot/jinjava/releases/tag/jinjava-2.8.1
  • github.com /HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning