CVE-2026-32289

JsBraceDepth Context Tracking Bugs (XSS) in html/template

State
Published
Severity
6.1 Medium
Published
Apr 8, 2026
Updated
Apr 13, 2026
Reserved
Mar 11, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
html/templateGo standard library
  • before 1.25.9Affected
  • 1.26.0-0 to before 1.26.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.