{"id":"CVE-2023-24540","state":"PUBLISHED","title":"Improper handling of JavaScript whitespace in html/template","description":"Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set \"\\t\\n\\f\\r\\u0020\\u2028\\u2029\" in JavaScript contexts that also contain actions may not be properly sanitized during execution.","publishedAt":"2023-05-11T15:29:31.947Z","updatedAt":"2025-01-24T16:45:07.999Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","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":"nextJSCtx"},{"name":"Template.Execute"},{"name":"Template.ExecuteTemplate"}]}],"references":["https://go.dev/issue/59721","https://go.dev/cl/491616","https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","https://pkg.go.dev/vuln/GO-2023-1752","https://security.netapp.com/advisory/ntap-20241115-0008/"],"weaknesses":["CWE-77"],"ingestedAt":"2026-10-29T20:05:43.909Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/24xxx/CVE-2023-24540.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-24540","state":"PUBLISHED","datePublished":"2023-05-11T15:29:31.947Z","dateUpdated":"2025-01-24T16:45:07.999Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2023-01-25T21:19:20.642Z"},"containers":{"cna":{"title":"Improper handling of JavaScript whitespace in html/template","descriptions":[{"lang":"en","value":"Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set \"\\t\\n\\f\\r\\u0020\\u2028\\u2029\" in JavaScript contexts that also contain actions may not be properly sanitized during execution."}],"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":"nextJSCtx"},{"name":"Template.Execute"},{"name":"Template.ExecuteTemplate"}]}],"references":[{"url":"https://go.dev/issue/59721"},{"url":"https://go.dev/cl/491616"},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU"},{"url":"https://pkg.go.dev/vuln/GO-2023-1752"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-74: Improper input validation"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2023-06-12T19:08:26.127Z"},"credits":[{"lang":"en","value":"Juho Nurminen of Mattermost"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://go.dev/issue/59721","tags":["x_transferred"]},{"url":"https://go.dev/cl/491616","tags":["x_transferred"]},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","tags":["x_transferred"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1752","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20241115-0008/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-11-15T13:08:11.286Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-01-24T16:42:20.856397Z","id":"CVE-2023-24540","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-77","type":"CWE","lang":"en","description":"CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-24T16:45:07.999Z"}}]}}}