Go Vulnerability Database
GO-2023-1751
Improper sanitization of CSS values in html/template
Details
Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character can result in unexpectedly closing the CSS context and allowing for injection of unexpected HTML, if executed with untrusted input.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.19.9 (fixed in 1.19.9) From 1.20.0-0 before 1.20.4 (fixed in 1.20.4) |