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 medium severity cross-site scripting (XSS) vulnerability in the Go standard library's html/template package. It arises from improper escaping of content within JavaScript template literals due to incorrect context tracking and brace depth handling. This flaw can lead to XSS when template branches are used. The vulnerability affects Go versions up to and including 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's html/template package involves improper neutralization of input during web page generation, specifically within JavaScript template literals. The root cause is incorrect context tracking and brace depth handling, which results in improper escaping of content. This can lead to cross-site scripting (CWE-79) vulnerabilities when template branches are utilized. The issue affects all Go versions up to 1.26.0-0. There is currently no official fix or remediation guidance from the vendor, and no known exploitation in the wild has been reported.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages generated using the affected html/template package, potentially leading to cross-site scripting attacks. This could result in limited confidentiality and integrity impacts, such as theft of user data or session hijacking. Availability is not impacted. However, no known exploits have been observed in the wild to date.
Mitigation Recommendations
No official patch or remediation guidance is currently provided by the vendor. Users should monitor the official Go project advisories for updates. Until a fix is released, careful review and sanitization of template inputs and avoidance of risky template branches in JavaScript literals may reduce exposure.
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 medium severity cross-site scripting (XSS) vulnerability in the Go standard library's html/template package. It arises from improper escaping of content within JavaScript template literals due to incorrect context tracking and brace depth handling. This flaw can lead to XSS when template branches are used. The vulnerability affects Go versions up to and including 1.26.0-0. No official patch or remediation guidance is currently available, and no known exploits have been reported in the wild.
CVSS v3.1
Score 6.1medium
Affected software
pkg:golang/github.com/golang/go/src/html/templateRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in the Go standard library's html/template package involves improper neutralization of input during web page generation, specifically within JavaScript template literals. The root cause is incorrect context tracking and brace depth handling, which results in improper escaping of content. This can lead to cross-site scripting (CWE-79) vulnerabilities when template branches are utilized. The issue affects all Go versions up to 1.26.0-0. There is currently no official fix or remediation guidance from the vendor, and no known exploitation in the wild has been reported.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages generated using the affected html/template package, potentially leading to cross-site scripting attacks. This could result in limited confidentiality and integrity impacts, such as theft of user data or session hijacking. Availability is not impacted. However, no known exploits have been observed in the wild to date.
Mitigation Recommendations
No official patch or remediation guidance is currently provided by the vendor. Users should monitor the official Go project advisories for updates. Until a fix is released, careful review and sanitization of template inputs and avoidance of risky template branches in JavaScript literals may reduce exposure.
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: 04/08/2026, 04:31:41 UTC
Last enriched: 06/24/2026, 17:20:59 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 174
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.