Skip to content
6.1 Medium

CVE-2026-32289 Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect…

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.

Affected products and versions

Product Affected versions Fixed in
html/template 1.26 1.26.0-0 → < 1.26.2 1.26.2
html/template 1.25 earliest → < 1.25.9 1.25.9

References

Timeline

  1. Published
  2. Last modified
The 14 CVEs of html/template →
Track this CVE