cve.bz

CVE-2025-59340 hubspot jinjava

10.0 criticalEPSS 2.1%Fix available

Critical (10.0) in hubspot jinjava. EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in com.hubspot.jinjava:jinjava 2.7.5, 2.8.1.

On this page
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.1% (unchanged from 2.2% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-09-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-59340 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59340?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59340?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-59340 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
hubspot:jinjavabefore 2.8.1

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