GO-2023-1753

Improper handling of empty HTML attributes in html/template

At a glance

Published
Updated
CVE
CVE-2023-29400
Aliases
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.

Affected packages

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

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database