Vulnerability · Published Apr 8, 2026 · Assigned by Go
CVE-2026-32289JsBraceDepth Context Tracking Bugs (XSS) in html/template
Medium 6.1
In plain English
A medium-severity security flaw in html/template from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | delve | 1.25.2-1.module_el8.10.0+4074+24330916 | ALSA-2026:22112 |
| AlmaLinux:8 | go-toolset | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux:8 | golang | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux:8 | golang-bin | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux:8 | golang-docs | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux:8 | golang-misc | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux:8 | golang-race | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux:8 | golang-src | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| AlmaLinux:8 | golang-tests | 1.25.10-1.module_el8.10.0+4187+c45165c4 | ALSA-2026:22112 |
| Alpine:v3.23 | go | 1.25.9-r0 | ALPINE-CVE-2026-32289 |
| Alpine:v3.24 | go | 1.26.2-r0 | ALPINE-CVE-2026-32289 |
| Alpine:v3.24 | rclone | 1.73.5-r0 | ALPINE-CVE-2026-32289 |
| Debian:12 | golang-1.19 | no fix listed | DEBIAN-CVE-2026-32289 |
| Debian:13 | golang-1.24 | no fix listed | DEBIAN-CVE-2026-32289 |
| Debian:14 | golang-1.26 | 1.26.2-1 | DEBIAN-CVE-2026-32289 |
| Go | stdlib | 1.25.9, 1.26.2 | GO-2026-4865 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:22.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:24.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:22.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:24.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:25.10 | golang-1.23 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:26.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:25.10 | golang-1.24 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:26.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:22.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:24.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:25.10 | golang-1.25 | no fix listed | UBUNTU-CVE-2026-32289 |
| Ubuntu:26.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-32289 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | html/template | 0 – before 1.25.91.26.0-0 – before 1.26.2 |