CVE-2026-32289

NameCVE-2026-32289
DescriptionContext 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-1.15 (PTS)bullseye1.15.15-1~deb11u4vulnerable
golang-1.19 (PTS)bookworm1.19.8-2vulnerable
golang-1.24 (PTS)trixie1.24.4-1vulnerable
forky, sid1.24.13-2vulnerable
golang-1.25 (PTS)forky1.25.8-1vulnerable
sid1.25.9-1fixed
golang-1.26 (PTS)forky1.26.1-1vulnerable
sid1.26.2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-1.15source(unstable)(unfixed)
golang-1.19source(unstable)(unfixed)
golang-1.24source(unstable)(unfixed)
golang-1.25source(unstable)1.25.9-1
golang-1.26source(unstable)1.26.2-1

Notes

https://groups.google.com/g/golang-announce/c/0uYbvbPZRWU
https://github.com/golang/go/issues/78331
Fixed by: https://github.com/golang/go/commit/babb1c32c2e7ee7a1147e7e587d35c553fb693ad (go1.26.2)
Fixed by: https://github.com/golang/go/commit/3ed316924408a02b256544eb40607e73702f2d0c (go1.25.9)

Search for package or bug name: Reporting problems