{"id":"CVE-2023-29400","published":"2023-05-11T15:29:24Z","modified":"2025-01-24T16:47:46Z","title":"Improper handling of empty HTML attributes in html/template","vendor":"Go standard library","product":"html/template","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01029,"percentile":0.64478,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://go.dev/issue/59722","tags":[]},{"url":"https://go.dev/cl/491617","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2023-1753","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241213-0005/","tags":[]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":12.9},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"html/template","versions":["< 1.19.9",">= 1.20.0-0, < 1.20.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-24T16:46:30.315646Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.19.9",">=1.20.0-0, <1.20.4"],"patched":["1.19.9","1.20.4"],"from":["GO-2023-1753"],"provenance":"source"}],"summary":{"text":"The html/template package in the Go standard library mishandles empty input in templates that place actions inside unquoted HTML attributes (for example \"attr={{.}}\"), because HTML normalization rules can cause the output to parse differently than intended. An attacker who can influence the data passed to such a template may be able to inject arbitrary attributes into tags, provided the template is executed with empty input and the attacker can reach the rendered output over the network without authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:51Z"},"euvd":{"id":"EUVD-2023-32972","exploited":false,"provenance":"source"}}