CVE-2026-32289: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Go standard library html/template
CVE-2026-32289 is a cross-site scripting (XSS) vulnerability in the Go standard library's html/template package. The issue arises because context tracking across template branches for JavaScript template literals is flawed, causing improper escaping of content. Additionally, template actions within these JS literals do not correctly track brace depth, further contributing to incorrect escaping. This can lead to injection of malicious scripts when untrusted input is rendered in templates. The vulnerability affects Go versions up to 1. 26. 0-0. No official patch or remediation guidance is currently available, and no known exploits have been reported in the wild.
AI Analysis
Technical Summary
This vulnerability in the Go standard library html/template package involves improper neutralization of input during web page generation, specifically within JavaScript template literals. The context tracking mechanism fails to correctly handle branches and brace depth, resulting in incorrect escaping of template actions. This flaw can cause cross-site scripting (CWE-79) vulnerabilities when untrusted data is embedded in templates. The affected versions include all releases up to 1.26.0-0. The vulnerability was published on April 8, 2026, but no patch or official remediation level has been disclosed by the vendor. The Go html/template package is not a cloud service, so remediation depends on updating the library in affected applications.
Potential Impact
If exploited, this vulnerability could allow an attacker to inject malicious JavaScript code into web pages generated by applications using the affected versions of the Go html/template package. This could lead to cross-site scripting attacks, potentially compromising user sessions, stealing sensitive information, or performing unauthorized actions in the context of the victim's browser. However, no known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or temporary workaround has been disclosed, users of the Go html/template package should monitor the Go project advisories for updates. In the meantime, careful review and sanitization of input data before rendering in templates is recommended to reduce risk.
CVE-2026-32289: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Go standard library html/template
Description
CVE-2026-32289 is a cross-site scripting (XSS) vulnerability in the Go standard library's html/template package. The issue arises because context tracking across template branches for JavaScript template literals is flawed, causing improper escaping of content. Additionally, template actions within these JS literals do not correctly track brace depth, further contributing to incorrect escaping. This can lead to injection of malicious scripts when untrusted input is rendered in templates. The vulnerability affects Go versions up to 1. 26. 0-0. No official patch or remediation guidance is currently available, and no known exploits have been reported in the wild.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in the Go standard library html/template package involves improper neutralization of input during web page generation, specifically within JavaScript template literals. The context tracking mechanism fails to correctly handle branches and brace depth, resulting in incorrect escaping of template actions. This flaw can cause cross-site scripting (CWE-79) vulnerabilities when untrusted data is embedded in templates. The affected versions include all releases up to 1.26.0-0. The vulnerability was published on April 8, 2026, but no patch or official remediation level has been disclosed by the vendor. The Go html/template package is not a cloud service, so remediation depends on updating the library in affected applications.
Potential Impact
If exploited, this vulnerability could allow an attacker to inject malicious JavaScript code into web pages generated by applications using the affected versions of the Go html/template package. This could lead to cross-site scripting attacks, potentially compromising user sessions, stealing sensitive information, or performing unauthorized actions in the context of the victim's browser. However, no known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or temporary workaround has been disclosed, users of the Go html/template package should monitor the Go project advisories for updates. In the meantime, careful review and sanitization of input data before rendering in templates is recommended to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-03-11T16:38:46.557Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d5da2d43e2781badfbe69c
Added to database: 4/8/2026, 4:31:41 AM
Last enriched: 4/8/2026, 4:46:51 AM
Last updated: 4/8/2026, 5:06:16 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.