{"id":"CVE-2023-24540","published":"2023-05-11T15:29:31Z","modified":"2025-01-24T16:45:07Z","title":"Improper handling of JavaScript whitespace in html/template","vendor":"Go standard library","product":"html/template","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0156,"percentile":0.75848,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://go.dev/issue/59721","tags":[]},{"url":"https://go.dev/cl/491616","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2023-1752","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241115-0008/","tags":[]}],"priority":{"score":22.0,"factors":[{"name":"EPSS percentile","points":15.17},{"name":"CVSS severity","points":6.86}]},"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":"yes","technicalImpact":"total","timestamp":"2025-01-24T16:42:20.856397Z","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-1752"],"provenance":"source"}],"summary":{"text":"The html/template package in the Go standard library mishandles certain JavaScript whitespace characters, treating only \"\\t\\n\\f\\r\\u0020\\u2028\\u2029\" as whitespace, so other valid JavaScript whitespace is not recognised. An attacker able to influence template content in a JavaScript context that also contains actions could exploit this to bypass sanitisation during template execution, with no authentication or user interaction required and network access sufficient.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:42:08Z"},"euvd":{"id":"EUVD-2023-28556","exploited":false,"provenance":"source"}}