CVE-2026-32289Cross-site Scripting in Standard Library Html Template

CWE-79Cross-site Scripting10 documents8 sources
Severity
6.1MEDIUMNVD
EPSS
0.0%
top 97.38%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedApr 8

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.7

Affected Packages1 packages

CVEListV5go_standard_library/html_template1.26.0-01.26.2+1

🔴Vulnerability Details

4
GHSA
GHSA-7mr4-xjxg-34g6: Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches we2026-04-08
OSV
CVE-2026-32289: Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches we2026-04-08
CVEList
JsBraceDepth Context Tracking Bugs (XSS) in html/template2026-04-08
OSV
JsBraceDepth Context Tracking Bugs (XSS) in html/template2026-04-07

📋Vendor Advisories

2
Red Hat
html/template: golang: html/template: Cross-Site Scripting (XSS) via improper context and brace depth tracking in JS template literals2026-04-08
Debian
CVE-2026-32289: golang-1.15 - Context was not properly tracked across template branches for JS template litera...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-32289 Impact, Exploitability, and Mitigation Steps | Wiz

💬Community

2
Bugzilla
CVE-2026-32289 golang: html/template: Cross-Site Scripting (XSS) via improper context and brace depth tracking in JS template literals [fedora-all]2026-04-08
Bugzilla
CVE-2026-32289 html/template: golang: html/template: Cross-Site Scripting (XSS) via improper context and brace depth tracking in JS template literals2026-04-08
CVE-2026-32289 — Cross-site Scripting | cvebase