GO-2023-1751

Source
https://pkg.go.dev/vuln/GO-2023-1751
Import Source
https://vuln.go.dev/ID/GO-2023-1751.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2023-1751
Aliases
Published
2023-05-05T21:10:20Z
Modified
2024-09-11T06:13:44.956259Z
Summary
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.

References
Credits
    • Juho Nurminen of Mattermost

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.19.9
Introduced
1.20.0-0
Fixed
1.20.4

Ecosystem specific

{
    "imports": [
        {
            "path": "html/template",
            "symbols": [
                "Template.Execute",
                "Template.ExecuteTemplate",
                "cssValueFilter",
                "escaper.commit"
            ]
        }
    ]
}