{"schema_version":"1.9.0","id":"BIT-golang-2023-39319","published":"2024-03-06T10:54:32.276Z","modified":"2026-09-08T08:47:48.871601605Z","aliases":["CVE-2023-39319","GO-2023-2043"],"summary":"Improper handling of special tags within script contexts in html/template","details":"The html/template package does not apply the proper rules for handling occurrences of \"<script\", \"<!--\", and \"</script\" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack.","affected":[{"package":{"name":"golang","ecosystem":"Bitnami","purl":"pkg:bitnami/golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.20.8"},{"introduced":"1.21.0"},{"fixed":"1.21.1"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2023-39319.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}],"references":[{"type":"FIX","url":"https://go.dev/cl/526157"},{"type":"REPORT","url":"https://go.dev/issue/62197"},{"type":"ARTICLE","url":"https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2023-2043"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202311-09"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20231020-0009/"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39319"}],"database_specific":{"cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"severity":"Medium"}}