The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped. This may be leveraged to perform an XSS attack.
https://security.netapp.com/advisory/ntap-20231020-0009/
https://security.gentoo.org/glsa/202311-09
https://pkg.go.dev/vuln/GO-2023-2041
https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
Published: 2023-09-08
Updated: 2026-06-17
Named Vulnerability: GO-2023-2041Named Vulnerability: GHSA-vq7j-gx56-rxjh
Base Score: 6.4
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:N
Severity: Medium
Base Score: 6.1
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Severity: Medium
EPSS: 0.0093