Description
JinJava is a Java-based template engine based on django template syntax, adapted to render jinja templates. Prior to versions 2.7.6 and 2.8.3, JinJava is vulnerable to arbitrary Java execution via bypass through ForTag. This allows arbitrary Java class instantiation and file access bypassing built-in sandbox restrictions. This issue has been patched in versions 2.7.6 and 2.8.3.
Published: 2026-02-04
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary Java execution via template injection
Action: Patch
AI Analysis

Impact

JinJava, a Java-based template engine that emulates Django template syntax, is vulnerable to arbitrary Java execution in versions before 2.7.6 and 2.8.3. An attacker can inject malicious code through a ForTag bypass, allowing the instantiation of arbitrary Java classes and access to files, thus violating the sandboxing restrictions designed to contain template execution. This flaw corresponds to CWE‑1336 and enables attackers to run code with the privileges of the Java process that renders the template.

Affected Systems

The affected product is HubSpot's JinJava template engine. All releases of JinJava older than version 2.7.6 and older than 2.8.3 are vulnerable. Administrators using these versions should verify the installed version and plan an upgrade to a patched release.

Risk and Exploitability

The CVSS score of 9.8 categorizes the vulnerability as critical, indicating a high risk to confidentiality, integrity, and availability. The EPSS score of less than 1% suggests a low probability of exploitation in the short term, but the flaw is not listed in CISA's KEV catalog, meaning no known active exploitation campaigns are reported yet. Likely attack vectors involve an attacker who can influence the content of a template—such as a user-supplied template or a template stored in a database—to inject ForTag expressions that trigger arbitrary code execution. This inference is based on the description of the vulnerability, as the original data does not detail the exact exploitation method.

Generated by OpenCVE AI on April 17, 2026 at 23:11 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade JinJava to version 2.7.6 or 2.8.3 to apply the official fix.
  • If an upgrade is infeasible, disable or remove the ForTag feature in the configuration to block the exploit path.
  • Restrict template rendering to trusted users only and audit any input that feeds into templates to ensure no malicious ForTag expressions can be injected.

Generated by OpenCVE AI on April 17, 2026 at 23:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-gjx9-j8f8-7j74 JinJava Bypass through ForTag leads to Arbitrary Java Execution
History

Fri, 20 Feb 2026 21:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*

Thu, 05 Feb 2026 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 05 Feb 2026 11:45:00 +0000

Type Values Removed Values Added
First Time appeared Hubspot
Hubspot jinjava
Vendors & Products Hubspot
Hubspot jinjava

Wed, 04 Feb 2026 21:45:00 +0000

Type Values Removed Values Added
Description JinJava is a Java-based template engine based on django template syntax, adapted to render jinja templates. Prior to versions 2.7.6 and 2.8.3, JinJava is vulnerable to arbitrary Java execution via bypass through ForTag. This allows arbitrary Java class instantiation and file access bypassing built-in sandbox restrictions. This issue has been patched in versions 2.7.6 and 2.8.3.
Title JinJava Bypass through ForTag leads to Arbitrary Java Execution
Weaknesses CWE-1336
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-05T21:01:00.454Z

Reserved: 2026-02-02T19:59:47.372Z

Link: CVE-2026-25526

cve-icon Vulnrichment

Updated: 2026-02-05T21:00:55.395Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-04T22:15:59.510

Modified: 2026-02-20T21:00:42.130

Link: CVE-2026-25526

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T23:15:30Z

Weaknesses