VDB
Sign up
HIGH7.3

GO-2023-1751

Improper sanitization of CSS values in html/template

Quick fix

GO-2023-1751 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.19.9

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.19.9
Fixgo get stdlib@v1.19.9

References