# CVE-2025-23026: HTML templates containing Javascript template strings are subject to XSS in jte

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-01-13T16:57:59.000Z
- Modified: 2026-06-17T08:51:31.540Z
- Also known as: GHSA-vh22-6c6h-rm8q
- Weaknesses: CWE-79, CWE-150
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- casid jte: < 3.1.16
- gg.jte:jte (Maven): before 3.1.16
- gg.jte:jte-runtime (Maven): before 3.1.16

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/casid/jte/security/advisories/GHSA-vh22-6c6h-rm8q> (exploit, web)
- <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#description> (web)
- <https://github.com/casid/jte/blob/main/jte-runtime/src/main/java/gg/jte/html/escape/Escape.java#L43-L83> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-23026> (advisory)
- <https://github.com/casid/jte/commit/a6fb00d53c7b8dbb86de933215dbe1b9191a57f1> (web)
- <https://github.com/casid/jte> (package)

## Sources

- CVE List: [CVE-2025-23026](https://www.cve.org/CVERecord?id=CVE-2025-23026), CVE Terms of Use, modified 2025-01-13
- GitHub Advisory Database: [GHSA-vh22-6c6h-rm8q](https://github.com/advisories/GHSA-vh22-6c6h-rm8q), CC-BY-4.0, modified 2025-01-13
- NVD: [CVE-2025-23026](https://nvd.nist.gov/vuln/detail/CVE-2025-23026), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-23026 · Whole record: https://cve.day/CVE-2025-23026.json · Rebuilt by cve.day 2026-11-25T22:58:53.222Z
