GO-2026-4982
Bypass of meta content URL escaping causes XSS in html/template
At a glance
- Published
- Updated
- CVE
- CVE-2026-39823
- Aliases
- BIT-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 packages
| Package | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.25.10, introduced 1.26.0-0, fixed 1.26.3 |
References
- https://go.dev/issue/78913 REPORT
- https://go.dev/cl/769920 FIX
- https://groups.google.com/g/golang-announce/c/qcCIEXso47M WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |