Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used. Additionally template actions within JS template literals did not properly track the brace depth, leading to incorrect escaping being applied. These issues could cause actions within JS template literals to be incorrectly or improperly escaped, leading to XSS vulnerabilities.
References
| Link | Resource |
|---|---|
| https://go.dev/cl/763762 | Patch |
| https://go.dev/issue/78331 | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU | Release Notes Mailing List |
| https://pkg.go.dev/vuln/GO-2026-4865 | Vendor Advisory |
Configurations
History
16 Apr 2026, 19:06
| Type | Values Removed | Values Added |
|---|---|---|
| CWE | CWE-79 | |
| CPE | cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* | |
| First Time |
Golang go
Golang |
|
| References | () https://go.dev/cl/763762 - Patch | |
| References | () https://go.dev/issue/78331 - Issue Tracking | |
| References | () https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU - Release Notes, Mailing List | |
| References | () https://pkg.go.dev/vuln/GO-2026-4865 - Vendor Advisory |
13 Apr 2026, 19:16
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 6.1 |
08 Apr 2026, 02:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-04-08 02:16
Updated : 2026-04-16 19:06
NVD link : CVE-2026-32289
Mitre link : CVE-2026-32289
CVE.ORG link : CVE-2026-32289
JSON object : View
Products Affected
golang
- go
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
