published 8 Apr 2026 · updated 25 Sep 2026
JsBraceDepth Context Tracking Bugs (XSS) in html/template
6.1MediumCVSS 6.1EPSS 0%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.25.9 and 1.26.2.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Go standard library | <1.25.9, >=1.26.0-0 <1.26.2 | 1.25.9, 1.26.2 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket