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.
Metrics
CVSS 3.1 6.1/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | html/template | < 1.25.10; >= 1.26.0-0, < 1.26.3 |
References
- https://go.dev/cl/771180Patch
- https://go.dev/issue/78981Patch
- https://groups.google.com/g/golang-announce/c/qcCIEXso47MRelease Notes
- https://pkg.go.dev/vuln/GO-2026-4980Vendor Advisory
Timeline
- Published
- May 7, 2026
- Last modified
- Oct 26, 2026
- NVD status
- Analyzed