Description
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.
References (6)
Core 6
Core References
Patch
https://go.dev/cl/526156
Issue Tracking
https://go.dev/issue/62196
Mailing List, Release Notes
https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
Vendor Advisory
https://pkg.go.dev/vuln/GO-2023-2041
Third Party Advisory
https://security.netapp.com/advisory/ntap-20231020-0009/
Third Party Advisory
https://security.gentoo.org/glsa/202311-09
Scores
CVSS v3
6.1
EPSS
0.0009
EPSS Percentile
24.7%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (1)
golang/go
< 1.20.8
Published
Sep 08, 2023
Tracked Since
Feb 18, 2026