Skip to main content
← All vulnerabilities
CVE-2025-23026GHSA-VH22-6C6H-RM8Q

HTML templates containing Javascript template strings are subject to XSS in jte

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.1.16
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • casid jte

    fixed in 3.1.16

  • gg.jte:jteMaven

    fixed in 3.1.16

  • gg.jte:jte-runtimeMaven

    fixed in 3.1.16

References 3

GitHub · casid/jte

developer.mozilla.org