Vulnerability · Published Feb 4, 2026 · Assigned by GitHub_M
CVE-2026-25526JinJava Bypass through ForTag leads to Arbitrary Java Execution
Critical 9.8
In plain English
A critical-severity security flaw in jinjava from HubSpot. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.hubspot.jinjava:jinjava | 2.8.3 | GHSA-gjx9-j8f8-7j74 |
| Maven | com.hubspot.jinjava:jinjava | 2.7.6 | GHSA-gjx9-j8f8-7j74 |
Affected products (as reported)
Weakness: CWE-1336 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/HubSpot/jinjava/security/advisories/GHSA-gjx9-j8f8-7j74 x_refsource_CONFIRM
- https://github.com/HubSpot/jinjava/commit/3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998 x_refsource_MISC
- https://github.com/HubSpot/jinjava/commit/c7328dce6030ac718f88974196035edafef24441 x_refsource_MISC
- https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.7.6 x_refsource_MISC
- https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.3 x_refsource_MISC