CVE-2023-29400
HIGH7.3EPSS 0.06%Improper handling of empty HTML attributes in html/template
Published: 5/5/2023Modified: 4/28/2026
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 packages (4)
- Bitnami/golangfrom 0, < 1.19.9, >= 1.20.0, < 1.20.4
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0
- Go/stdlibfrom 0, < 1.19.9, >= 1.20.0-0, < 1.20.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
References (7)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-29400
- PATCHhttps://go.dev/cl/491617
- REPORThttps://go.dev/issue/59722
- WEBhttps://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2023-29400
- WEBhttps://pkg.go.dev/vuln/GO-2023-1753
- WEBhttps://security.netapp.com/advisory/ntap-20241213-0005/