GO-2023-1753
Dashboard / Vulnerabilities / GO-2023-1753
Summary: Improper handling of empty HTML attributes in html/template
Details: 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.
References: https://go.dev/issue/59722, https://go.dev/cl/491617, https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.19.9
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
