GO-2026-4603
URLs in meta content attribute actions are not escaped in html/template
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2026-27142
- Alias
- BIT-golang-2026-27142
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.25.8, introduced 1.26.0-0, fixed 1.26.1 |
Références
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk WEB
- https://go.dev/issue/77954 REPORT
- https://go.dev/cl/752081 FIX
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |