CVE-2026-97030: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Go standard library html/template
Description
CVE-2026-97030 is a cross-site scripting (XSS) vulnerability in the Go standard library's html/template package. It involves improper neutralization of input during web page generation related to the handling of the 'yield' keyword. The issue arises when valid uses of the 'yield' keyword were not correctly escaped, potentially allowing injection of malicious scripts. The vulnerability has been addressed by ensuring that valid keyword uses are escaped properly while non-keyword uses are not escaped.
Affected software
Go standard library
html/template
pkg:golang/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 html/template package concerns improper escaping of the 'yield' keyword in templates. Previously, templates authored with valid 'yield' keyword usage might not have been escaped correctly, leading to potential cross-site scripting risks. The fix ensures correct escaping behavior, differentiating between valid keyword uses and non-keyword uses to prevent XSS.
Potential Impact
The vulnerability could allow an attacker to inject malicious scripts into web pages generated by the affected html/template versions if the 'yield' keyword is used improperly in templates. This could lead to cross-site scripting attacks, impacting the confidentiality and integrity of web applications using these template versions.
Mitigation Recommendations
A fix is available in versions 1.26.9 and 1.27.2 and later. Users should upgrade to at least version 1.26.9 or 1.27.2 to mitigate this vulnerability. Since this is a library vulnerability, updating the affected versions is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-09-23T23:03:01.995Z
- State
- PUBLISHED
Threat ID: 6ac821662cdf04f65641721a
Added to database: 10/08/2026, 23:04:06 UTC
Last enriched: 10/08/2026, 23:18:55 UTC
Last updated: 10/08/2026, 23:19:11 UTC
Views: 5
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.