6.1medium
Escaper bypass leads to XSS in html/template
- Severity
- 6.1medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.37% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2026-4980BIT-GOLANG-2026-39826
Description
If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| html/template | before 1.25.10, from 1.26.0-0 before 1.26.3 | CVE List |
| stdlib (Go) | before 1.25.10, from 1.26.0-0 before 1.26.3 | Go Vulnerability Database |
| golang go | before 1.25.10, from 1.26.0 before 1.26.3 | NVD |
| golang (Bitnami) | before 1.25.10, from 1.26.0-0 before 1.26.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.
NVD (es)
Si un autor de plantilla de confianza escribiera una etiqueta [script_tag] que contuviera un atributo ’type’ vacío o un atributo ’type’ con un espacio en blanco ASCII, la ejecución de la plantilla escaparía incorrectamente cualquier dato pasado al bloque [script_tag].
References
| https://go.dev/issue/78981 | fix, patch, report | |
| https://go.dev/cl/771180 | fix, patch | |
| https://groups.google.com/g/golang-announce/c/qcCIEXso47M | article, release-notes, web | |
| https://pkg.go.dev/vuln/GO-2026-4980 | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39826 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39826 changed 2026-05-08 | CVE Terms of Use |
| Go Vulnerability Database | GO-2026-4980 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-39826 changed 2026-10-26 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2026-39826 changed 2026-09-08 | Apache-2.0 |