Skip to main content

Html Template EUVDEUVD-2026-20018

| CVE-2026-32289 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-08 Go
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts template with JS literal
  2. Delivery
    User or application renders template
  3. Exploit
    Parser mishandles branch context
  4. Install
    Incorrect escaping applied
  5. C2
    Malicious payload bypasses neutralization
  6. Execute
    JavaScript executes in browser context
  7. Impact
    XSS attack succeeds

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires that a Go html/template contains both (1) JavaScript template literals (backtick-delimited strings with ${...} expressions) and (2) template branching logic (if, else, range, or other flow control directives) applied within or affecting those JS template literals. Additionally, a template action must be positioned such that brace-depth tracking would be incorrect, causing context escaping rules to be misapplied. This is not a vulnerability in default configurations but rather a specific interaction between template syntax features; however, any application using both feature combinations is at risk if running an affected version.

Impact

This vulnerability presents low real-world exploitation risk despite a network-accessible attack vector. The CVSS score of 6.1 (Medium) reflects network reachability and potential confidentiality/integrity impact, but several factors reduce practical risk: (1) User interaction is required (UI:R), meaning an attacker cannot trigger the vulnerability remotely without user involvement, (2) the EPSS score of 0.01% (1st percentile) indicates minimal empirical exploitation probability, (3) no public exploit code or active exploitation (KEV status) is documented, (4) the vulnerability requires specific conditions - template branches and JS template literals must both be present in the same template context, which is a relatively constrained attack surface. The scope is changed (S:C), meaning the vulnerability can affect resources beyond the vulnerable component, but only under the exploitation conditions outlined. For organizations using html/template, patching is recommended as a standard lifecycle measure rather than emergency response.

Exploit ScenarioDerived

An attacker crafts a web application or injects a malicious template that uses JavaScript template literals with branching logic (e.g., an if-block that conditionally renders a template action within a backtick-delimited JS string). When a user visits the application or views the rendered content, the template parser's improper brace tracking causes a template action to be incorrectly escaped, allowing an embedded payload such as ${alert('XSS')} to execute in the user's browser instead of being properly neutralized. No public proof-of-concept code is documented.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 15, 2026

Cross-site scripting (XSS) vulnerability in Go's html/template package allows incorrect escaping of template actions within JavaScript template literals, enabling attackers to inject malicious scripts when template branches and brace-depth tracking are mishandled. Affects html/template versions prior to 1.26.2 and 1.25.9. The vulnerability requires user interaction (UI:R) and is not actively exploited based on available intelligence, though the low EPSS score (0.01%) indicates minimal real-world exploitation likelihood despite the network-accessible attack vector.

RemediationAI

Upgrade Go's html/template package to version 1.26.2 or later (for 1.26.x branch) or to version 1.25.9 or later (for 1.25.x and earlier branches). For users on Go distributions, this requires upgrading the Go runtime version that bundles the patched standard library. Vendor advisory details and commit information are available at https://go.dev/cl/763762 and https://pkg.go.dev/vuln/GO-2026-4865. No workarounds are documented; patching is the primary remediation. Developers should review any templates using JavaScript template literals with branching logic to ensure they are updated once the Go runtime is patched.

Affected VersionsENISA

html/template 1.26.0-0 <1.26.2
html/template 0 <1.25.9

Affected Packages

go stdlib fix: 1.25.9, 1.26.2
euvd html_template fix: 1.25.9, 1.26.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Go's html/template package provides automatic context-aware HTML escaping for template variables. The vulnerability stems from two distinct flaws in how the template parser handles JavaScript (JS) template literals (backtick-delimited strings in JavaScript that support embedded expressions via ${...} syntax). First, context state is not properly maintained when template execution branches (if/else, range, etc.) occur within JS template literals, causing the escaper to apply incorrect HTML or JavaScript escaping rules. Second, the template action parser fails to correctly track nested brace depth within JS template literals, leading to improper demarcation of template action boundaries and subsequent incorrect escaping. JS template literals are a modern JavaScript feature that creates a complex escaping challenge because content inside ${...} expressions requires JavaScript context awareness, yet the surrounding literal requires different escaping rules. The CWE classification is not provided, but this aligns with improper input neutralization patterns common to XSS vulnerabilities.

Know when Html Template gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
SUSE MEDIUM
Red Hat 5.4 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 13, 2026 - 19:37 NVD
6.1 (MEDIUM)
Patch released
Apr 08, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 08, 2026 - 01:06 nvd
N/A

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Development Tools 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy