GO-2023-1753
Improper handling of empty HTML attributes in html/template
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2023-29400
- Alias
- BIT-golang-2023-29400
Description
Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input can result in output with unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.19.9, introduced 1.20.0-0, fixed 1.20.4 |
Références
- https://go.dev/issue/59722 REPORT
- https://go.dev/cl/491617 FIX
- https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |