Description
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.
References (6)
Core 6
Core References
Patch
https://go.dev/cl/526157
Issue Tracking
https://go.dev/issue/62197
Vendor Advisory
https://pkg.go.dev/vuln/GO-2023-2043
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