CVE-2025-59340CRITICAL 10.0EPSS p81.2%

CVE-2025-59340CVE-2025-59340

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.

Scoring

CVSS 3.110.0 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS2.31% probability of exploitation · percentile 81.2% · 2026-06-18T12:00:27Z
Published2025-09-17
Last modified2025-09-26

Underlying weaknesses· 1

CWE-1336

References

  1. https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1
  2. https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.1
  3. https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v

1

TypeTargetConfidenceTier
WeaknessImproper Neutralization of Special Elements Used in a Template Enginecwe-13360%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-25526
CVE
CVE-2025-27516
CVE
CVE-2025-8963
CVE
CVE-2025-10492
CVE
CVE-2025-42928
CVE
CVE-2025-31722
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.