CVE-2026-32289: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Go standard library html/template
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.
AI Analysis
Technical Summary
The vulnerability arises from the Go html/template package's failure to properly track context across template branches and brace depth within JavaScript template literals. This results in incorrect or improper escaping of template actions, potentially enabling cross-site scripting (CWE-79). The issue affects Go versions from 0 up to 1.26.0-0. The CVSS 3.1 base score is 6.1, reflecting a medium severity with network attack vector, low attack complexity, no privileges required, user interaction needed, and partial impact on confidentiality and integrity. No vendor advisory or patch links are currently available.
Potential Impact
Successful exploitation could allow an attacker to inject malicious scripts into web pages generated using the vulnerable html/template package, potentially leading to partial confidentiality and integrity compromise through cross-site scripting. There is no indication of availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, developers should carefully review and sanitize template inputs, especially when using JavaScript template literals with branches. Avoid relying solely on the html/template package's escaping for untrusted input in these contexts.
CVE-2026-32289: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Go standard library html/template
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from the Go html/template package's failure to properly track context across template branches and brace depth within JavaScript template literals. This results in incorrect or improper escaping of template actions, potentially enabling cross-site scripting (CWE-79). The issue affects Go versions from 0 up to 1.26.0-0. The CVSS 3.1 base score is 6.1, reflecting a medium severity with network attack vector, low attack complexity, no privileges required, user interaction needed, and partial impact on confidentiality and integrity. No vendor advisory or patch links are currently available.
Potential Impact
Successful exploitation could allow an attacker to inject malicious scripts into web pages generated using the vulnerable html/template package, potentially leading to partial confidentiality and integrity compromise through cross-site scripting. There is no indication of availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, developers should carefully review and sanitize template inputs, especially when using JavaScript template literals with branches. Avoid relying solely on the html/template package's escaping for untrusted input in these contexts.
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/15/2026, 11:51:53 AM
Last updated: 5/23/2026, 11:00:30 PM
Views: 96
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.