Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32289: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Go standard library html/template

0
High
VulnerabilityCVE-2026-32289cvecve-2026-32289cwe-79
Published: Wed Apr 08 2026 (04/08/2026, 01:06:56 UTC)
Source: CVE Database V5
Vendor/Project: Go standard library
Product: 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

AILast updated: 04/08/2026, 04:46:51 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses