Skip to content
Heist/ feed
Back to feed
Critical

JinJava Bypass through ForTag leads to Arbitrary Java Execution

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-25526
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:01 UTC · Revision 1

Source evidence

JinJava Bypass through ForTag leads to Arbitrary Java Execution

core-osv · Original source

Published 4 Feb 2026, 21:26 UTC

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.

osv:CVE-2026-25526
Complete source record
{
  "id": "2641b455df980df8f13aa0cd2edcbe2e900128efa1a3f07332ec843d33694a1d",
  "url": "https://osv.dev/vulnerability/CVE-2026-25526",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "JinJava Bypass through ForTag leads to Arbitrary Java Execution",
    "summary": "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.",
    "evidence": "osv:CVE-2026-25526",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-25526",
      "aliases": [
        "CVE-2026-25526",
        "GHSA-gjx9-j8f8-7j74"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hubspot/jinjava",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "df6d0c6a58f23e106b154acf4a3466af83108983"
                },
                {
                  "introduced": "9ac250cae14e76b3ec512d621196655c841f7442"
                },
                {
                  "fixed": "867dde7725b86829ad64d609d916c16d2b8b5d59"
                },
                {
                  "fixed": "3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998"
                },
                {
                  "fixed": "c7328dce6030ac718f88974196035edafef24441"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.7.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:hubspot:jinjava:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.8.0"
                      },
                      {
                        "fixed": "2.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c7328dce6030ac718f88974196035edafef24441"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "df6d0c6a58f23e106b154acf4a3466af83108983"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "jinjava-2.7.6"
                  },
                  {
                    "range": [
                      {
                        "fixed": "867dde7725b86829ad64d609d916c16d2b8b5d59"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "jinjava-2.8.3"
                  }
                ]
              }
            }
          ],
          "versions": [
            "jinjava-2.0.5",
            "jinjava-2.0.4",
            "jinjava-2.0.3",
            "jinjava-2.0.2",
            "jinjava-2.0.1",
            "jinjava-2.0.0",
            "jinjava-1.0.9",
            "jinjava-1.0.8",
            "jinjava-1.0.7",
            "jinjava-1.0.6",
            "jinjava-1.0.5",
            "jinjava-1.0.4",
            "jinjava-1.0.3",
            "jinjava-1.0.2",
            "jinjava-1.0.1",
            "jinjava-1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-25526.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.133674447Z",
      "provider": "osv",
      "references": [
        "https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.7.6",
        "https://github.com/HubSpot/jinjava/releases/tag/jinjava-2.8.3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25526.json",
        "https://github.com/HubSpot/jinjava/security/advisories/GHSA-gjx9-j8f8-7j74",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-25526",
        "https://github.com/HubSpot/jinjava/commit/3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998",
        "https://github.com/HubSpot/jinjava/commit/c7328dce6030ac718f88974196035edafef24441"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1336"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25526.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-25526",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521589,
  "published_at": "2026-02-04T21:26:58.572+00:00"
}