Home

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.

PUBLISHED Reserved 2026-03-11 | Published 2026-04-08 | Updated 2026-04-13 | Assigner Go

Problem types

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Product status

Default status
unaffected

Any version before 1.25.9
affected

1.26.0-0 (semver) before 1.26.2
affected

References

go.dev/cl/763762

go.dev/issue/78331

groups.google.com/g/golang-announce/c/0uYbvbPZRWU

pkg.go.dev/vuln/GO-2026-4865

cve.org (CVE-2026-32289)

nvd.nist.gov (CVE-2026-32289)

Download JSON