What’s Vulnerable › Vulnerabilities

CVE-2023-29400: Improper handling of empty HTML attributes in html/template

Description

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.

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-29400 or the next vulnerability affects your stack