Security mailing lists by PureSourceCode

CVE-2025-59340

CRITICAL 10.0CVSS 3.1

jinjava has Sandbox Bypass via JavaType-Based Deserialization

jinjava is a Java-based template engine based on django template syntax, adapted to render jinja templates. Priori to 2.8.1, by using mapper.getTypeFactory().constructFromCanonical(), it is possible to instruct the underlying ObjectMapper to deserialize attacker-controlled input into arbitrary classes. This enables the creation of semi-arbitrary class instances without directly invoking restricted methods or class literals. As a result, an attacker can escape the sandbox and instantiate classes such as java.net.URL, opening up the ability to access local files and URLs(e.g., file:///etc/passwd). With further chaining, this primitive can potentially lead to remote code execution (RCE). This vulnerability is fixed in 2.8.1.

Published
17 Sep 2025
Last modified
31 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-1336
Also known as
GHSA-m49c-g9wr-hv6v
Sources
NVDJSONOSV GHSA-m49c-g9wr-hv6vJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD hubspot jinjava
cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*
< 2.8.1 2.8.1
OSV Maven com.hubspot.jinjava:jinjava >= 2.8.0, < 2.8.1 2.8.1
OSV Maven com.hubspot.jinjava:jinjava >= 2.7.0, < 2.7.5 2.7.5

References

History

  • 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Sep 2025)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 Sep 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.