Cross-site Scripting (XSS)Weakness · CWE-79

CVE-2025-23026

MEDIUM · 6.1 CVSS v3.1 Published 2025-01-13
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
68/100
Remediation priority · Elevated
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

jte Java Template Engine versions 3.1.15 and earlier contain a reflected XSS vulnerability in the Escape class. The javaScriptBlock and javaScriptAttribute methods fail to escape backticks (`) and dollar signs ($) used in JavaScript template literals, allowing attackers to inject malicious script content through HTML templates using OwaspHtmlTemplateOutput.

MitigationUpgrade jte dependency to version 3.1.16 or later, as there are no available workarounds for this vulnerability.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify jte library version
    Check your project dependency file (pom.xml, build.gradle, package.json) or the jte JAR file in your classpath for version 3.1.15 or earlier
    Affected if The installed jte version is 3.1.15 or any earlier version (e.g., 3.1.14, 3.1.0, etc.)
  2. Locate Escape class usage
    Search your codebase for references to the Escape class, specifically calls to javaScriptBlock() and javaScriptAttribute() methods
    Affected if Your codebase uses Escape.javaScriptBlock() or Escape.javaScriptAttribute() methods to render JavaScript content in templates
  3. Verify OwaspHtmlTemplateOutput is configured
    Check your template configuration or initialization code for OwaspHtmlTemplateOutput being set as the output type
    Affected if Templates are configured to use OwaspHtmlTemplateOutput as the output mode
  4. Identify templates with JavaScript and user input
    Search template files (.jte, .gte, or your configured template extension) that contain both JavaScript blocks and dynamic expressions that could contain user-supplied data
    Affected if Templates render dynamic content (expressions, variables) inside JavaScript contexts using the affected Escape methods

You are affected if your environment uses jte version 3.1.15 or earlier AND uses Escape.javaScriptBlock() or Escape.javaScriptAttribute() with OwaspHtmlTemplateOutput to render dynamic content within JavaScript template literals.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade jte dependency to version 3.1.16 or later, as there are no available workarounds for this vulnerability.

Recommended fix High confidence

3.1.16

  1. 1. Identify the current jte version in your project by checking your build configuration (pom.xml, build.gradle, or similar)
  2. 2. Update the jte dependency to version 3.1.16 or later
  3. 3. For Maven: Update the version in pom.xml to 3.1.16 or use a version range like [3.1.16,)
  4. 4. For Gradle: Update the version in build.gradle to '3.1.16' or use a dynamic version like '3.1.+'
  5. 5. Rebuild and test your application to ensure the upgrade does not break existing functionality
  6. 6. Verify that HTML templates with script tags or script attributes using backticks are now properly escaped

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation1.0 h
  • Testing4.0 h
  • Review / QA2.0 h
9.0 hours of engineering $1,540
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,464.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-23026 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-23026 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data