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
Medium
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

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

AILast updated: 04/15/2026, 11:51:53 UTC

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.

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/15/2026, 11:51:53 AM

Last updated: 5/23/2026, 11:00:30 PM

Views: 96

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