Live threats

All CVEs / Hubspot

CVE-2025-59340Hubspot Jinjava

Critical 10.0 No auth needed

Priority
75
CVSS 3.1
10.0
EPSS
—
Auth required
No
Published
Sep 17, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1336
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Jinjava.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.hubspot.jinjava:jinjava ≥ 2.8.0 < 2.8.1 2.8.1 —
Maven com.hubspot.jinjava:jinjava ≥ 2.7.0 < 2.7.5 2.7.5 —

Per OSV / GitHub Advisories (GHSA-m49c-g9wr-hv6v). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
hubspotjinjava< 2.8.1

Official sources

References

Links published by the sources. Open them with care.