{"id":"CVE-2023-24539","state":"PUBLISHED","title":"Improper sanitization of CSS values in html/template","description":"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.","publishedAt":"2023-05-11T15:29:38.143Z","updatedAt":"2025-01-24T16:41:28.222Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"CISA-ADP"},"assigner":"Go","products":["Go standard library html/template"],"affected":[{"vendor":"Go standard library","product":"html/template","packageName":"html/template","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.19.9","versionType":"semver"},{"version":"1.20.0-0","status":"affected","lessThan":"1.20.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"cssValueFilter"},{"name":"escaper.commit"},{"name":"Template.Execute"},{"name":"Template.ExecuteTemplate"}]}],"references":["https://go.dev/issue/59720","https://go.dev/cl/491615","https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","https://pkg.go.dev/vuln/GO-2023-1751","https://security.netapp.com/advisory/ntap-20241129-0005/"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:05:43.909Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/24xxx/CVE-2023-24539.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-24539","state":"PUBLISHED","datePublished":"2023-05-11T15:29:38.143Z","dateUpdated":"2025-01-24T16:41:28.222Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2023-01-25T21:19:20.642Z"},"containers":{"cna":{"title":"Improper sanitization of CSS values in html/template","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Go standard library","product":"html/template","packageName":"html/template","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.19.9","versionType":"semver"},{"version":"1.20.0-0","status":"affected","lessThan":"1.20.4","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"cssValueFilter"},{"name":"escaper.commit"},{"name":"Template.Execute"},{"name":"Template.ExecuteTemplate"}]}],"references":[{"url":"https://go.dev/issue/59720"},{"url":"https://go.dev/cl/491615"},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU"},{"url":"https://pkg.go.dev/vuln/GO-2023-1751"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-74: Improper input validation"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-06-12T19:08:23.986Z"},"credits":[{"lang":"en","value":"Juho Nurminen of Mattermost"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://go.dev/issue/59720","tags":["x_transferred"]},{"url":"https://go.dev/cl/491615","tags":["x_transferred"]},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1751","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20241129-0005/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-11-29T12:04:36.503Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.3,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-01-24T16:39:35.722970Z","id":"CVE-2023-24539","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-24T16:41:28.222Z"}}]}}}