CVE-2026-25526CWE-1336

JinJava Bypass through ForTag leads to Arbitrary Java Execution

Critical · published February 4, 2026

CVSS v3.1
9.8
EPSS
1%
Percentile
62.6
In the wild
Unconfirmed
What it is

🔥 A sneaky bypass in JinJava allows arbitrary Java execution, opening up a world of chaos if exploited! Think of JinJava as a restaurant kitchen with a chef who can open any drawer without being asked. The flaw here is like a missing rule that lets the chef access ingredients they shouldn't, allowing them to create any dish—no matter how dangerous! An attacker could leverage this flaw to instantiate any Java class, potentially manipulating files and executing code without any sandboxes to keep them in check. This could lead to unauthorized access to sensitive data, system compromise, or even taking control of the entire application!

Put simply

Think of JinJava as a restaurant kitchen with a chef who can open any drawer without being asked. The flaw here is like a missing rule that lets the chef access ingredients they shouldn't, allowing them to create any dish—no matter how dangerous! In versions prior to 2.7.6 and 2.8.3, the ForTag in JinJava allows attackers to bypass sandbox restrictions, enabling them to execute arbitrary Java code and access files on the server.

What to do

An attacker could leverage this flaw to instantiate any Java class, potentially manipulating files and executing code without any sandboxes to keep them in check. This could lead to unauthorized access to sensitive data, system compromise, or even taking control of the entire application! Update JinJava to versions 2.7.6 or 2.8.3 immediately to patch this critical vulnerability. It's essential to review your use of template engines and ensure that any further configurations are secure to prevent future exploits. You've got this! By taking these steps, you're not just patching a flaw; you're fortifying your app against potential threats. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01003 · 62.6th percentile
Weakness
CWE-1336 · Improper Neutralization of Special Elements Used in a Template Engine
Published
2026-02-04T21:26Z
EPSS history
Timeline
  • 04 FEB 21:26Z
    JinJava Bypass through ForTag leads to Arbitrary Java Execution
    cvelistv5