CVE-2020-12668: Unauthorized access to Class instance in Jinjava
Summary
CVE-2020-12668: Unauthorized access to Class instance in Jinjava. Affects com.hubspot.jinjava:jinjava versions < 2.5.4. Fixed in 2.5.4. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
Jinjava is a Java-based template engine that allows developers to embed dynamic content in web applications. It provides a way to render templates with data, making it easier to generate HTML, XML, or any other text-based format. The package 'com.hubspot.jinjava:jinjava' is a popular implementation of Jinjava in the Maven ecosystem. However, versions prior to 2.5.4 are vulnerable to unauthorized access to Class instances, which can lead to abuse of the application class loader and potential Arbitrary File Disclosure.
Vulnerability Detail
The vulnerability in Jinjava allows attackers to access arbitrary classes by calling Java methods on objects passed into a Jinjava context. This can be exploited to abuse the application class loader, potentially leading to Arbitrary File Disclosure. By manipulating the Jinjava context, an attacker could execute unauthorized actions and gain access to sensitive information. The vulnerability has a CVSS score of 6.5, indicating a moderate severity level.
How To Fix
Latest published version: 2.8.4 as of 23 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
2.5.4
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update to the fixed version of the package to mitigate the risk.
Conclusion
In conclusion, the vulnerability in Jinjava allows unauthorized access to Class instances, potentially leading to abuse of the application class loader and Arbitrary File Disclosure. It is crucial to update the 'com.hubspot.jinjava:jinjava' package to version 2.5.4 or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for com.hubspot.jinjava:jinjava →
FAQ
Jinjava is a Java-based template engine used for rendering dynamic content in web applications.
The vulnerability allows unauthorized access to Class instances, potentially leading to abuse of the application class loader and Arbitrary File Disclosure.
To fix this vulnerability, update the 'com.hubspot.jinjava:jinjava' package to version 2.5.4 or later.
No, there is no known workaround for this vulnerability. Updating to the fixed version is necessary.
The vulnerability has a CVSS score of 6.5, indicating a moderate severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for com.hubspot.jinjava:jinjava.