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

PaquetVersions
Go · stdlibintroduced 0, fixed 1.19.9, introduced 1.20.0-0, fixed 1.20.4

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database