What’s Vulnerable › Vulnerabilities
CVE-2026-32289: JsBraceDepth Context Tracking Bugs (XSS) in html/template
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-08 · updated 2026-07-25
- Weakness: CWE-79
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
- Go: before 1.25.9; from 1.26.0 before 1.26.2 — fixed in 1.25.9, 1.26.2
- Go Stdlib: before 1.25.9; from 1.26.0-0 before 1.26.2 — fixed in 1.25.9, 1.26.2
How to fix
Upgrade to a fixed version: Go 1.25.9, 1.26.2; Go Stdlib 1.25.9, 1.26.2. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/763762
- https://go.dev/issue/78331
- https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU
- https://pkg.go.dev/vuln/GO-2026-4865
Get alerted when CVE-2026-32289 or the next vulnerability affects your stack