Critical Sandbox Bypass Vulnerability in Jinjava Allows Arbitrary Java Execution

com.hubspot.jinjava:jinjava Updated 03 Feb 2026

Summary

03/02/2026
CRITICAL
Yes i
Critical
9.8

GHSA-gjx9-j8f8-7j74: JinJava Bypass through ForTag leads to Arbitrary Java Execution. Affects com.hubspot.jinjava:jinjava across 2 version ranges.

< 2.7.6 >= 2.8.0, < 2.8.3

Fixed in 2.7.6 or 2.8.3, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Jinjava is a template rendering engine developed by HubSpot, primarily used for rendering Jinja templates in Java applications. It enables developers to create dynamic content by allowing user-provided templates to be processed safely. However, vulnerabilities in its sandboxing mechanism can lead to severe security risks, particularly when untrusted templates are rendered.

Vulnerability Detail

The vulnerability in Jinjava arises from multiple security bypass flaws in its sandbox mechanism, specifically through the ForTag class. This allows attackers to access arbitrary getter methods on objects in the template context, instantiate classes through JSON deserialization, and potentially execute arbitrary code. The critical nature of this vulnerability is underscored by its ability to bypass built-in sandbox restrictions, leading to arbitrary Java class instantiation and unauthorized file access.

How To Fix

Latest published version: 2.8.4 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.7.6 2.7.6
  • >= 2.8.0, < 2.8.3 2.8.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There are no specific workarounds mentioned for this vulnerability. The best course of action is to upgrade to the patched versions as soon as possible.

Conclusion

The Jinjava vulnerability presents a significant risk due to its ability to bypass sandbox restrictions, allowing for arbitrary code execution. Users are strongly advised to upgrade to the latest versions to ensure their applications remain secure.

See every vulnerability recorded for com.hubspot.jinjava:jinjava →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.8, indicating a critical severity level.

Organizations using HubSpot's Jinjava for user-provided templates and any system rendering untrusted Jinja templates are at risk.

Attackers can access arbitrary Java classes, read files from the server, and potentially execute arbitrary code.

You can use Vulert's playground at Vulert Scanner to monitor and alert for open-source vulnerabilities without needing to sign up.

While there are no specific workarounds, it is crucial to prioritize the upgrade to mitigate the risk associated with this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for com.hubspot.jinjava:jinjava.

How To Fix

Latest published version: 2.8.4 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.7.6 2.7.6
  • >= 2.8.0, < 2.8.3 2.8.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback