Improper Neutralization of Special Elements Used in a Template Engine Affecting com.hubspot.jinjava:jinjava package, versions [,2.8.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.39% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMHUBSPOTJINJAVA-12878604
  • published18 Sept 2025
  • disclosed17 Sept 2025
  • credittaisehub, odgrso

Introduced: 17 Sep 2025

NewCVE-2025-59340  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade com.hubspot.jinjava:jinjava to version 2.8.1 or higher.

Overview

com.hubspot.jinjava:jinjava is a Java-based template engine based on django template syntax, adapted to render jinja templates (at least the subset of jinja in use in HubSpot content).

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine due to using mapper.getTypeFactory().constructFromCanonical() function. An attacker can instantiate arbitrary classes and potentially execute code by supplying crafted input to the deserialization process.

CVSS Base Scores

version 4.0
version 3.1