{"id":"CVE-2023-24540","aliases":["CVE-2023-24540","GO-2023-1752","BIT-GOLANG-2023-24540"],"related":["CGA-c9q8-wf86-p6mw"],"kind":"vulnerability","state":"published","title":"Improper handling of JavaScript whitespace in html/template","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2023-05-05T21:10:22.000Z","modified":"2026-09-08T08:47:49.069Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-74","CWE-77"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.19.9","status":"affected"},{"type":"semver","introduced":"1.20.0-0","fixed":"1.20.4","status":"affected"}],"vendor":"Go standard library","product":"html/template","package":"html/template","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.9"},{"type":"semver","introduced":"1.20.0-0","status":"affected","fixed":"1.20.4"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.19.9"},{"status":"affected","introduced":"1.20.0","fixed":"1.20.4"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.19.9"},{"type":"semver","introduced":"1.20.0","status":"affected","fixed":"1.20.4"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/issue/59721","tags":["fix","issue-tracking","patch","report","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/cl/491616","tags":["fix","patch","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","tags":["discussion","mailing-list","release-notes","web","x-transferred"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1752","tags":["advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20241115-0008/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-24540","tags":["web"],"sources":["bitnami"]}],"credits":["Juho Nurminen of Mattermost"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-01-24T16:42:20.856Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-24540","url":"https://www.cve.org/CVERecord?id=CVE-2023-24540","licence":"CVE Terms of Use","modified":"2025-01-24T16:45:07.999Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1752","url":"https://pkg.go.dev/vuln/GO-2023-1752","licence":"CC-BY-4.0","modified":"2026-02-04T03:50:58.841Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-24540","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-24540","licence":"Public domain","modified":"2026-06-17T05:39:30.007Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2023-24540","url":"https://osv.dev/vulnerability/BIT-GOLANG-2023-24540","licence":"Apache-2.0","modified":"2026-09-08T08:47:49.069Z"}],"updatedAt":"2026-11-25T22:58:24.101Z","epss":{"score":0.0156,"percentile":0.75967,"date":"2026-12-01T12:00:22.000Z"}}