XSS in Golang Go
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 class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.009 (58.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 59th percentile — 58.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.008 · newest: 0.009 · change: +0.001
Affected products
- Golang Go
- Go Standard Library Html/template — versions 0, 1.21.0-0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- go.dev/issue/62197 (Issue Tracking)
- go.dev/cl/526157 (Patch)
- groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJ (Release Notes)
- pkg.go.dev/vuln/GO-2023-2043 (Vendor Advisory)
- security.netapp.com/advisory/ntap-20231020-0009/ (Third Party Advisory)
- security.gentoo.org/glsa/202311-09
Frequently asked questions
- What is CVE-2023-39319?
- CVE-2023-39319 is a medium-severity vulnerability in Golang Go, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2023-09-08.
- How severe is CVE-2023-39319?
- Medium severity. CVSS v3 base score is 6.1 out of 10.
- Is CVE-2023-39319 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.