Vulnerability Report: GO-2023-2043
standard library- CVE-2023-39319
- Affects: html/template
- Published: Sep 07, 2023
- Modified: May 20, 2024
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 Packages
-
PathGo VersionsSymbols
-
before go1.20.8, from go1.21.0-0 before go1.21.1
Aliases
References
- https://go.dev/issue/62197
- https://go.dev/cl/526157
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
- https://vuln.go.dev/ID/GO-2023-2043.json
Credits
- Takeshi Kaneko (GMO Cybersecurity by Ierae, Inc.)
Feedback
See anything missing or incorrect?
Suggest an edit to this report.