What’s Vulnerable › Vulnerabilities
CVE-2023-29400: Improper handling of empty HTML attributes in html/template
- Severity: high (CVSS 7.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-05-11 · updated 2026-06-17
- Weakness: CWE-74
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
- Go: before 1.19.9; from 1.20.0 before 1.20.4 — fixed in 1.19.9, 1.20.4
How to fix
Upgrade to a fixed version: Go 1.19.9, 1.20.4. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/491617
- https://go.dev/issue/59722
- https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
- https://pkg.go.dev/vuln/GO-2023-1753
- https://go.dev/cl/491617
- https://go.dev/issue/59722
- https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
- https://pkg.go.dev/vuln/GO-2023-1753
- https://security.netapp.com/advisory/ntap-20241213-0005/
Get alerted when CVE-2023-29400 or the next vulnerability affects your stack