Skip to content

quarkus-langchain4j-jlama-1.7.4.jar: 2 vulnerabilities (highest severity is: 9.8) - autoclosed #391

@mend-bolt-for-github

Description

@mend-bolt-for-github
Vulnerable Library - quarkus-langchain4j-jlama-1.7.4.jar

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/hubspot/jinjava/jinjava/2.7.2/jinjava-2.7.2.jar

Found in HEAD commit: a4af5067ab130790f0eed7e5598d2e5879f60033

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (quarkus-langchain4j-jlama version) Remediation Possible**
CVE-2026-25526 Critical 9.8 jinjava-2.7.2.jar Transitive N/A*
CVE-2025-59340 Critical 9.8 jinjava-2.7.2.jar Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2026-25526

Vulnerable Library - jinjava-2.7.2.jar

Jinja templating engine implemented in Java

Library home page: https://github.com/HubSpot/jinjava

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/hubspot/jinjava/jinjava/2.7.2/jinjava-2.7.2.jar

Dependency Hierarchy:

  • quarkus-langchain4j-jlama-1.7.4.jar (Root Library)
    • jlama-core-0.8.4.jar
      • jinjava-2.7.2.jar (Vulnerable Library)

Found in HEAD commit: a4af5067ab130790f0eed7e5598d2e5879f60033

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2026-02-04

URL: CVE-2026-25526

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-gjx9-j8f8-7j74

Release Date: 2026-02-03

Fix Resolution: com.hubspot.jinjava:jinjava:2.8.3,com.hubspot.jinjava:jinjava:2.7.6

Step up your Open Source Security Game with Mend here

CVE-2025-59340

Vulnerable Library - jinjava-2.7.2.jar

Jinja templating engine implemented in Java

Library home page: https://github.com/HubSpot/jinjava

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/com/hubspot/jinjava/jinjava/2.7.2/jinjava-2.7.2.jar

Dependency Hierarchy:

  • quarkus-langchain4j-jlama-1.7.4.jar (Root Library)
    • jlama-core-0.8.4.jar
      • jinjava-2.7.2.jar (Vulnerable Library)

Found in HEAD commit: a4af5067ab130790f0eed7e5598d2e5879f60033

Found in base branch: main

Vulnerability Details

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.

Publish Date: 2025-09-17

URL: CVE-2025-59340

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-m49c-g9wr-hv6v

Release Date: 2025-09-17

Fix Resolution: com.hubspot.jinjava:jinjava:2.8.1,https://github.com/HubSpot/jinjava.git - jinjava-2.8.1

Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions