CVE-2020-12668: Unauthorized access to Class instance in Jinjava

com.hubspot.jinjava:jinjava Updated 02 Oct 2025

Summary

09/02/2022
Yes i
Moderate
6.5

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 ↓

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 Your last release was probably never penetration tested 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 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 →

Share this vulnerability

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.

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 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 →

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