{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-24540","id":"CVE-2023-24540","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.","descriptionLong":"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.","published":"2023-05-11T15:29:31.947Z","updated":"2026-10-28T02:30:54.339948436Z","reserved":"2023-01-25T21:19:20.642Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"critical","products":["Go standard library html/template"],"affectedProducts":[{"vendor":"Go standard library","product":"html/template","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.19.9","status":"affected","versionType":"semver"},{"version":"1.20.0-0","lessThan":"1.20.4","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"stdlib","purl":"pkg:golang/stdlib","ranges":["<1.19.9",">=1.20.0-0 <1.20.4"],"fixed":["1.19.9","1.20.4"],"advisory":"GO-2023-1752"}],"cwes":["CWE-74","CWE-77"],"aliases":["BIT-golang-2023-24540","GO-2023-1752"],"references":[{"url":"https://go.dev/issue/59721","tags":["x_transferred","Issue Tracking","Patch","web","report"]},{"url":"https://go.dev/cl/491616","tags":["x_transferred","Patch","web","fix"]},{"url":"https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU","tags":["x_transferred","Mailing List","Release Notes","web"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1752","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20241115-0008/","tags":["advisory"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/24xxx/CVE-2023-24540.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-24540","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.0156,"epssPercentile":0.7577,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-24540","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-24540","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-24540","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-24540","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["go"],"critical":["CVSS 9.8 in a widely used technology"],"attention":null}