Skip to content
CVE PROGRAM SOURCE RECORD6.1 Medium

CVE-2026-32289

JsBraceDepth Context Tracking Bugs (XSS) in 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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library html/template

Default version status: unaffected

  • 0 to < 1.25.9affected
  • 1.26.0-0 to < 1.26.2affected

References