cve.bz

CVE-2025-59340

10.0 criticalEPSS 2.2%

Critical (10.0) in hubspot jinjava. EPSS 2.2% chance of exploitation in the next 30 days. Fixed in com.hubspot.jinjava:jinjava 2.7.5, 2.8.1.

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.

Severity

CVSS 3.1

10.0 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
2.2% chance of exploitation in the next 30 days; higher than 82% of CVEs (scores of 2026-10-31)
CWE
CWE-1336
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-m49c-g9wr-hv6vMavencom.hubspot.jinjava:jinjava>=2.8.0 <2.8.12.8.1
GHSA-m49c-g9wr-hv6vMavencom.hubspot.jinjava:jinjava>=2.7.0 <2.7.52.7.5

References

Check your stackJSON