6.1medium
Bypass of meta content URL escaping causes XSS in html/template
- Severity
- 6.1medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.31% (higher than 26% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2026-4982BIT-GOLANG-2026-39823
Description
CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a <meta> tag's <content> attribute. If the URL content were to insert ASCII whitespaces around the '=' rune inside of the <content> attribute, the escaper would fail to similarly escape it, leading to XSS.
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
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a <meta> tag's <content> attribute. If the URL content were to insert ASCII whitespaces around the '=' rune inside of the <content> attribute, the escaper would fail to similarly escape it, leading to XSS.
NVD (es)
CVE-2026-27142 corrigió una vulnerabilidad en la que las URL no se escapaban correctamente dentro del atributo [content] de una etiqueta [meta]. Si el contenido de la URL insertara espacios en blanco ASCII alrededor del carácter ’=’ dentro del atributo [content], el mecanismo de escape no lograría escaparlo de manera similar, lo que llevaría a XSS.
References
| https://go.dev/issue/78913 | issue-tracking, report | |
| https://go.dev/cl/769920 | fix, patch | |
| https://groups.google.com/g/golang-announce/c/qcCIEXso47M | article, release-notes, web | |
| https://pkg.go.dev/vuln/GO-2026-4982 | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39823 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39823 changed 2026-05-08 | CVE Terms of Use |
| Go Vulnerability Database | GO-2026-4982 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-39823 changed 2026-10-26 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2026-39823 changed 2026-09-08 | Apache-2.0 |