{"id":"CVE-2023-24539","published":"2023-05-11T15:29:38Z","modified":"2025-01-24T16:41:28Z","title":"Improper sanitization of CSS values in html/template","vendor":"Go standard library","product":"html/template","tier":"tail","description":{"text":"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.","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.64479,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://go.dev/issue/59720","tags":[]},{"url":"https://go.dev/cl/491615","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2023-1751","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241129-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:39:35.722970Z","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-1751"],"provenance":"source"}],"summary":{"text":"The html/template package in the Go standard library fails to sanitize angle brackets when they are inserted into CSS contexts, so templates that place multiple actions separated by a '/' character can unexpectedly close the CSS context. An attacker who can supply untrusted input to such a template can inject arbitrary HTML, with no authentication, user interaction or specific configuration required beyond the template being executed with that input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:50Z"},"euvd":{"id":"EUVD-2023-28555","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-24536","published":"2023-04-06","fixed":"1.20.3","kev":false},{"cve":"CVE-2023-24537","published":"2023-04-06","fixed":"1.20.3","kev":false},{"cve":"CVE-2023-24538","published":"2023-04-06","fixed":"1.20.3","kev":false},{"cve":"CVE-2023-24539","published":"2023-05-11","fixed":"1.20.4","kev":false},{"cve":"CVE-2023-24540","published":"2023-05-11","fixed":"1.20.4","kev":false},{"cve":"CVE-2023-29400","published":"2023-05-11","fixed":"1.20.4","kev":false},{"cve":"CVE-2023-29403","published":"2023-06-08","fixed":"1.20.5","kev":false,"link":{"from":"CVE-2023-24539","to":"CVE-2023-29403","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.19.9","toFixed":"1.19.10","daysApart":28}]}}],"package":"Go:stdlib"}}