Vulnerability Details : CVE-2023-24540
Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.
Products affected by CVE-2023-24540
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-24540
0.25%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 65 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-24540
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2023-24540
-
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.Assigned by: security@golang.org (Secondary)
References for CVE-2023-24540
-
https://pkg.go.dev/vuln/GO-2023-1752
GO-2023-1752 - Go PackagesVendor Advisory
-
https://go.dev/issue/59721
html/template: improper handling of JavaScript whitespace · Issue #59721 · golang/go · GitHubIssue Tracking;Patch
-
https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU
[security] Go 1.20.4 and Go 1.19.9 are releasedMailing List;Release Notes
-
https://go.dev/cl/491616
html/template: handle all JS whitespace characters (491616) · Gerrit Code ReviewPatch
Jump to