Vulnerability · Published Oct 8, 2026 · Assigned by Go

CVE-2026-94448Reset context tracking on consecutive template expressions in html/template

Medium 6.1

In plain English

A medium-severity cross-site scripting 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.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.3%top 78.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and escaped.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.26.1-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:10go-toolset1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8go-toolset1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9go-toolset1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux:10golang1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8golang1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9golang1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux:10golang-bin1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8golang-bin1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9golang-bin1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux:10golang-docs1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8golang-docs1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9golang-docs1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux:10golang-misc1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8golang-misc1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9golang-misc1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux:10golang-race1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8golang-race1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9golang-race1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux:10golang-src1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8golang-src1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9golang-src1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux:10golang-tests1.26.10-1.el10_2.alma.1ALSA-2026:86093
AlmaLinux:8golang-tests1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux:9golang-tests1.26.10-1.el9_8ALSA-2026:86196
Alpine:v3.24go1.26.9-r0ALPINE-CVE-2026-94448
Debian:12golang-1.19no fix listedDEBIAN-CVE-2026-94448
Debian:13golang-1.24no fix listedDEBIAN-CVE-2026-94448
Debian:14golang-1.261.26.9-1DEBIAN-CVE-2026-94448
Debian:14golang-1.271.27.2-1DEBIAN-CVE-2026-94448
Gostdlib1.26.9, 1.27.2GO-2026-6599
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2026-94448
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-94448
Ubuntu:24.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-94448
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-94448
Ubuntu:26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-94448
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-94448
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-94448
Ubuntu:24.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-94448
Ubuntu:26.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-94448
Ubuntu:22.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-94448
Ubuntu:24.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-94448
Ubuntu:26.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-94448
Ubuntu:26.10golang-1.26no fix listedUBUNTU-CVE-2026-94448
Ubuntu:26.10golang-1.27no fix listedUBUNTU-CVE-2026-94448

Affected products (as reported)

VendorProductVersions
Go standard library html/template 0 – before 1.26.91.27.0-0 – before 1.27.2

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References