Vulnerability Details : CVE-2023-39319
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.
Vulnerability category: Cross site scripting (XSS)
Products affected by CVE-2023-39319
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-39319
0.10%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 42 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-39319
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-39319
-
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-39319
-
https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ
[security] Go 1.21.1 and Go 1.20.8 are releasedRelease Notes
-
https://go.dev/issue/62197
html/template: improper handling of special tags within script contexts (CVE-2023-39319) · Issue #62197 · golang/go · GitHubIssue Tracking
-
https://security.gentoo.org/glsa/202311-09
Go: Multiple Vulnerabilities (GLSA 202311-09) — Gentoo security
-
https://pkg.go.dev/vuln/GO-2023-2043
GO-2023-2043 - Go PackagesVendor Advisory
-
https://go.dev/cl/526157
html/template: properly handle special tags within the script context (526157) · Gerrit Code ReviewPatch
-
https://security.netapp.com/advisory/ntap-20231020-0009/
September 2023 Golang Vulnerabilities in NetApp Products | NetApp Product SecurityThird Party Advisory
Jump to