What’s Vulnerable › Vulnerabilities

CVE-2023-24539: Improper sanitization of CSS values in html/template

Description

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 products

How to fix

Upgrade to a fixed version: Go 1.19.9, 1.20.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-24539 or the next vulnerability affects your stack