Vulnerability Report: GO-2026-4865
- CVE-2026-32289
- Affects: html/template
- Published: Apr 07, 2026
Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used. Additionally template actions within JS template literals did not properly track the brace depth, leading to incorrect escaping being applied. These issues could cause actions within JS template literals to be incorrectly or improperly escaped, leading to XSS vulnerabilities.
Affected Packages
-
PathVersionsSymbols
-
before go1.25.9, from go1.26.0-0 before go1.26.2
Aliases
References
- https://go.dev/cl/763762
- https://go.dev/issue/78331
- https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU
- https://vuln.go.dev/ID/GO-2026-4865.json
Feedback
See anything missing or incorrect?
Suggest an edit to this report.