Vulnerability Details : CVE-2023-39318
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.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2023-39318
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-39318
0.06%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 20 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-39318
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.1
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
2.8
|
2.7
|
NIST |
CWE ids for CVE-2023-39318
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by:
- nvd@nist.gov (Primary)
- security@golang.org (Secondary)
References for CVE-2023-39318
-
https://go.dev/cl/526156
html/template: support HTML-like comments in script contexts (526156) · Gerrit Code ReviewPatch
-
https://pkg.go.dev/vuln/GO-2023-2041
GO-2023-2041 - Go PackagesVendor Advisory
-
https://go.dev/issue/62196
html/template: improper handling of HTML-like comments within script contexts (CVE-2023-39318) · Issue #62196 · golang/go · GitHubIssue Tracking
-
https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
[security] Go 1.21.1 and Go 1.20.8 are releasedMailing List;Release Notes
-
https://security.gentoo.org/glsa/202311-09
Go: Multiple Vulnerabilities (GLSA 202311-09) — Gentoo security
-
https://security.netapp.com/advisory/ntap-20231020-0009/
September 2023 Golang Vulnerabilities in NetApp Products | NetApp Product SecurityThird Party Advisory
Jump to