Description
Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.
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.8; >= 1.26.0-0, < 1.26.1 |
References
- https://go.dev/cl/752081Mailing List
- https://go.dev/issue/77954Issue Tracking
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hkRelease Notes
- https://pkg.go.dev/vuln/GO-2026-4603Vendor Advisory
Timeline
- Published
- Mar 6, 2026
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed