CVE-2025-23026
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 · uneditedjte (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 confidencejte 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.
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 checksWork through these to decide whether this CVE applies to you.
-
Identify jte library versionCheck your project dependency file (pom.xml, build.gradle, package.json) or the jte JAR file in your classpath for version 3.1.15 or earlierAffected if The installed jte version is 3.1.15 or any earlier version (e.g., 3.1.14, 3.1.0, etc.)
-
Locate Escape class usageSearch your codebase for references to the Escape class, specifically calls to javaScriptBlock() and javaScriptAttribute() methodsAffected if Your codebase uses Escape.javaScriptBlock() or Escape.javaScriptAttribute() methods to render JavaScript content in templates
-
Verify OwaspHtmlTemplateOutput is configuredCheck your template configuration or initialization code for OwaspHtmlTemplateOutput being set as the output typeAffected if Templates are configured to use OwaspHtmlTemplateOutput as the output mode
-
Identify templates with JavaScript and user inputSearch template files (.jte, .gte, or your configured template extension) that contain both JavaScript blocks and dynamic expressions that could contain user-supplied dataAffected 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.
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 · scopedUpgrade jte dependency to version 3.1.16 or later, as there are no available workarounds for this vulnerability.
3.1.16
- 1. Identify the current jte version in your project by checking your build configuration (pom.xml, build.gradle, or similar)
- 2. Update the jte dependency to version 3.1.16 or later
- 3. For Maven: Update the version in pom.xml to 3.1.16 or use a version range like [3.1.16,)
- 4. For Gradle: Update the version in build.gradle to '3.1.16' or use a dynamic version like '3.1.+'
- 5. Rebuild and test your application to ensure the upgrade does not break existing functionality
- 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.
- Consultation2.0 h
- Implementation1.0 h
- Testing4.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-23026 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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