CVE-2025-23026
Description
jte (Java Template Engine) is a secure and lightweight template engine for Java and Kotlin. In affected versions Jte HTML templates with script tags or script attributes that include a Javascript template string (backticks) are subject to XSS. The javaScriptBlock and javaScriptAttribute methods in the Escape class do not escape backticks, which are used for Javascript template strings. Dollar signs in template strings should also be escaped as well to prevent undesired interpolation. HTML templates rendered by Jte's OwaspHtmlTemplateOutput in versions less than or equal to 3.1.15 with script tags or script attributes that contain Javascript template strings (backticks) are vulnerable. Users are advised to upgrade to version 3.1.16 or later to resolve this issue. There are no known workarounds for this vulnerability.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
gg.jte:jteMaven | < 3.1.16 | 3.1.16 |
gg.jte:jte-runtimeMaven | < 3.1.16 | 3.1.16 |
Affected products
3- ghsa-coords2 versions
< 3.1.16+ 1 more
- (no CPE)range: < 3.1.16
- (no CPE)range: < 3.1.16
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-vh22-6c6h-rm8qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-23026ghsaADVISORY
- developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literalsnvdWEB
- github.com/casid/jte/blob/main/jte-runtime/src/main/java/gg/jte/html/escape/Escape.javanvdWEB
- github.com/casid/jte/commit/a6fb00d53c7b8dbb86de933215dbe1b9191a57f1ghsaWEB
- github.com/casid/jte/security/advisories/GHSA-vh22-6c6h-rm8qnvdWEB
News mentions
0No linked articles in our index yet.