CVE-2026-32289 Details
Description
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.
A vulnerability exists in the Go programming language's HTML template package, specifically in versions prior to 1.25.9 and between 1.26.0 and 1.26.2. The issue arises from improper context tracking across template branches in JavaScript template literals, which can lead to incorrect content escaping. Additionally, template actions within JavaScript template literals failed to accurately monitor brace depth, resulting in misapplied escaping. These flaws could allow for actions in JavaScript template literals to be improperly escaped, potentially creating cross-site scripting (XSS) vulnerabilities.
Users can upgrade to Go versions 1.25.9 or 1.26.2 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/763762 | [email protected] | Patch |
| https://go.dev/issue/78331 | [email protected] | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU | [email protected] | Mailing ListRelease Notes |
| https://pkg.go.dev/vuln/GO-2026-4865 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.25.9 >= 1.26.0, < 1.26.2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 25, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 16, 2026 | Initial Analysis | [email protected] |
| Apr 13, 2026 | CVE Modified | CISA-ADP |
| Apr 8, 2026 | New CVE Received | [email protected] |