Vulnerability Report: GO-2026-4980
standard library- CVE-2026-39826
- Affects: html/template
- Published: May 07, 2026
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 Packages
-
PathGo VersionsSymbols
-
before go1.25.10, from go1.26.0-0 before go1.26.3
Aliases
References
- https://go.dev/issue/78981
- https://go.dev/cl/771180
- https://groups.google.com/g/golang-announce/c/qcCIEXso47M
- https://vuln.go.dev/ID/GO-2026-4980.json
Credits
- Mundur (https://github.com/M0nd0R)
Feedback
See anything missing or incorrect?
Suggest an edit to this report.