Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.20.8 |
Related Weaknesses (CWE)
References
- https://go.dev/cl/526157Patch
- https://go.dev/issue/62197Issue Tracking
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJRelease Notes
- https://pkg.go.dev/vuln/GO-2023-2043Vendor Advisory
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20231020-0009/Third Party Advisory
- https://go.dev/cl/526157Patch
- https://go.dev/issue/62197Issue Tracking
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJRelease Notes
- https://pkg.go.dev/vuln/GO-2023-2043Vendor Advisory
- https://security.gentoo.org/glsa/202311-09
- https://security.netapp.com/advisory/ntap-20231020-0009/Third Party Advisory
FAQ
What is CVE-2023-39319?
CVE-2023-39319 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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 i...
How severe is CVE-2023-39319?
CVE-2023-39319 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-39319?
Check the references section above for vendor advisories and patch information. Affected products include: Golang Go.