CVE-2025-59340 in Hubspot Jinjava
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 ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Hubspot | Jinjava | < 2.8.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-59340 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-035695-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Published | 2025-09-17 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1336: CWE-1336
Analysis AI-written, not human-reviewed
CVE-2025-59340 affects jinjava versions prior to 2.8.1, allowing attackers to deserialize arbitrary classes through mapper.getTypeFactory().constructFromCanonical(), leading to potential remote code execution.
An attacker can craft a malicious template that, when processed by jinjava, will instruct the underlying ObjectMapper to deserialize attacker-controlled input into arbitrary classes. This can lead to remote code execution if the attacker can control the input to the deserialization process.
Questions
What is CVE-2025-59340?
CVE-2025-59340 affects jinjava versions prior to 2.8.1, allowing attackers to deserialize arbitrary classes through mapper.getTypeFactory().constructFromCanonical(), leading to potential remote code execution.
What is the CVSS score for CVE-2025-59340?
CVE-2025-59340 has CVSS 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 1.5%.
Is CVE-2025-59340 actively exploited?
No confirmed active exploitation of CVE-2025-59340 as of 2026-09-25.
How do I remediate CVE-2025-59340?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2025-59340?
CVE-2025-59340 affects Hubspot Jinjava.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Hubspot","product":"Jinjava","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.