CVE-2025-59340
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.
EPSS 1.27% · 79.8th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| hubspot | jinjava | 0 |
| HubSpot | jinjava | < 2.8.1 |
| Maven | com.hubspot.jinjava:jinjava | 2.8.0, 0, 2.8.0 |
Exploit Intelligence
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- CIRCL seen: CVE-2025-59340 (circl-sighting)
- https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v (circl)
- https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1 (circl)
…and 1 more exploits
Timeline
- Jan 21, 1970 Security Advisory
- Sep 17, 2025 CVE Published
- Sep 18, 2025 EPSS Score
- Sep 18, 2025 PoC Published
- Sep 19, 2025 PoC Published
- Sep 19, 2025 PoC Published
- Sep 19, 2025 PoC Published
- Sep 20, 2025 PoC Published
- Sep 22, 2025 PoC Published
- Sep 22, 2025 PoC Published
- Sep 25, 2025 EPSS Score
- Oct 2, 2025 EPSS Score
References
- https://github.com/HubSpot/jinjava/security/advisories/GHSA-m49c-g9wr-hv6v url
- https://github.com/HubSpot/jinjava/commit/66df351e7e8ad71ca04dcacb4b65782af820b8b1 url
- https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.1 url
- https://nvd.nist.gov/vuln/detail/CVE-2025-59340 advisory
- https://github.com/HubSpot/jinjava package
- https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.7.5 url