CVE-2026-25526 JinJava Bypass through ForTag leads to Arbitrary Java Execution
Attackers can execute arbitrary Java code and access files by bypassing sandbox restrictions in the JinJava template engine.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-25526?
CVE-2026-25526 is a critical code injection vulnerability in HubSpot jinjava, published on 4 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-1336
Which versions are affected by CVE-2026-25526?
4 open source packages ship an affected version, including com.hubspot.jinjava:jinjava. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.hubspot.jinjava:jinjava Maven | All versions | 2.7.6 |
com.hubspot.jinjava:jinjava Maven | All versions | 2.7.6 |
com.hubspot.jinjava:jinjava Maven | From 2.8.0 | 2.8.3 |
com.hubspot.jinjava:jinjava Maven | From 2.8.0 | 2.8.3 |
Products include Hubspot Jinjava.
How do I fix CVE-2026-25526?
Upgrade com.hubspot.jinjava:jinjava to a fixed version for your release line: 2.7.6 or 2.8.3.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-25526 being exploited?
There is no known exploitation of CVE-2026-25526 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in HubSpot jinjava
Sources
Also known as CLEANSTART-2026-ST98100, GHSA-gjx9-j8f8-7j74, MINI-4m2v-j5r3-vrwv.