cve.bz

CVE-2026-94448 go standard library html/template: Cross-site Scripting

6.1 mediumEPSS 0.3%Fix available

Medium (6.1) in go standard library html/template. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.26.9, 1.27.2.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-94448 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-94448?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-94448?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-94448 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • go standard library:html/template

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library html/templatebefore 1.26.9
Go standard library html/templatefrom 1.27.0-0 before 1.27.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-6599Gostdlib<1.26.9
>=1.27.0-0 <1.27.2
1.26.9, 1.27.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2026-94448
Debian13golang-1.24no fix listedDEBIAN-CVE-2026-94448
Debian14golang-1.261.26.9-1DEBIAN-CVE-2026-94448
Debian14golang-1.271.27.2-1DEBIAN-CVE-2026-94448
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2026-94448
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2026-94448
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2026-94448
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18 and 3 moreno fix listedUBUNTU-CVE-2026-94448
Ubuntu22.04:LTSgolang-1.17, golang-1.18, golang-1.20 and 6 moreno fix listedUBUNTU-CVE-2026-94448
Ubuntu24.04:LTSgolang-1.21, golang-1.22, golang-1.23 and 3 moreno fix listedUBUNTU-CVE-2026-94448
Ubuntu26.04:LTSgolang-1.23, golang-1.24, golang-1.25 and 1 moreno fix listedUBUNTU-CVE-2026-94448
Ubuntu26.10golang-1.26, golang-1.27no fix listedUBUNTU-CVE-2026-94448
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2026-94448
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2026-94448
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2026-94448
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2026-94448
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.26.1-1.module+el8.10.0+24516+40554724RHSA-2026:86203
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.26.10-1.module+el8.10.0+25107+6b50279cRHSA-2026:86203
Red Hatenterprise_linux:9::appstreamgolang, go-toolset, golang-bin and 5 more0:1.26.10-1.el9_8RHSA-2026:86196
Red Hatenterprise_linux:10.2golang, go-toolset, golang-bin and 5 more0:1.26.10-1.el10_2RHSA-2026:86093
Red Hatenterprise_linux_eus:10.0golang, go-toolset, golang-bin and 5 more0:1.26.10-1.el10_0RHSA-2026:87040
Red Hatrhel_e4s:9.2::appstreamgolang, go-toolset, golang-bin and 5 more0:1.26.10-1.el9_2RHSA-2026:87041
Red Hatrhel_e4s:9.4::appstreamgolang, go-toolset, golang-bin and 5 more0:1.26.10-1.el9_4RHSA-2026:87042
Red Hatrhel_eus:9.6::appstreamgolang, go-toolset, golang-bin and 5 more0:1.26.10-1.el9_6RHSA-2026:87043
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.261.26.9-150000.1.33.1SUSE-SU-2026:4629-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morego1.271.27.2-150000.1.12.1SUSE-SU-2026:4625-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morego1.26-openssl1.26.10-150000.1.21.2SUSE-SU-2026:4867-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.26-openssl1.26.10-150600.13.18.1SUSE-SU-2026:4866-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.261.26.9-160000.1.1SUSE-SU-2026:24239-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.271.27.2-160000.1.1SUSE-SU-2026:24237-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0govulncheck-vulndb0.0.20261105T234957-160000.1.1SUSE-SU-2026:24730-1
openSUSELeap 16.0go1.261.26.9-160000.1.1openSUSE-SU-2026:22095-1
openSUSELeap 16.0go1.271.27.2-160000.1.1openSUSE-SU-2026:22093-1
openSUSETumbleweedgo1.261.26.9-1.1openSUSE-SU-2026:12093-1
openSUSETumbleweedgo1.271.27.2-1.1openSUSE-SU-2026:12101-1
openSUSETumbleweedrclone1.75.2-1.1openSUSE-SU-2026:12112-1
AlmaLinux8delve1.26.1-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux8golang, go-toolset, golang-bin and 5 more1.26.10-1.module_el8.10.0+4307+6e4cbc60ALSA-2026:86203
AlmaLinux9golang, go-toolset, golang-bin and 5 more1.26.10-1.el9_8ALSA-2026:86196
AlmaLinux10golang-src, golang-docs, golang-misc and 1 more1.26.10-1.el10_2.alma.1ALSA-2026:86093
Alpinev3.24go1.26.9-r0ALPINE-CVE-2026-94448
Azure Linux3golangno fix listedAZL-107469 AZL-107499
Alpaquita23, 25go1.26.9-r0BELL-CVE-2026-94448
Alpaquitastreamgo1.27.2-r0BELL-CVE-2026-94448
BellSoft Hardened Containers23, 25go1.26.9-r0BELL-CVE-2026-94448
BellSoft Hardened Containersstreamgo1.27.2-r0BELL-CVE-2026-94448

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A MODERATE severity cross-site scripting (XSS) vulnerability was found in Go's html/template package, which is shipped and used across multiple Red Hat products, including Red Hat Enterprise Linux (golang and go-toolset), Red Hat Enterprise Linux AI, Red Hat In-Vehicle OS, and other components that build against the Go toolchain. When a JavaScript template literal contains consecutive expressions, the parser fails to properly reset its context tracking state upon entering a new expression. As a result, subsequent regular expression literals are not accurately recognized and escaped, allowing a remote attacker to supply untrusted content through a template that bypasses html/template sanitization and executes malicious script in a victim's browser. Successful exploitation requires a victim user to visit a rendered page of a Go web application that interpolates attacker-controlled input into JavaScript template literals. Red Hat has rated this flaw MODERATE with a CVSS 3.1 score of 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), consistent with the upstream assessment; the impact is limited to low confidentiality and integrity loss within the client browser context, with no availability impact. Because the CVSS score is below 7.0, the fix is deferred for the affected Red Hat product streams and update trackers are not being filed for this MODERATE severity flaw at this time. The residual risk is limited to Go-based web applications that render attacker-controlled content through html/template into JavaScript contexts; the flaw does not affect applications that do not use html/template with JavaScript template literals.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10golang-0:1.26.10-1.el10_2Fixed 2026-10-20RHSA-2026:86093
Red Hat Enterprise Linux 10.0 Extended Update Supportgolang-0:1.26.10-1.el10_0Fixed 2026-10-21RHSA-2026:87040
Red Hat Enterprise Linux 8go-toolset:rhel8-8100020261020054335.a3795deeFixed 2026-10-20RHSA-2026:86203
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgo-toolset:rhel8-8040020261027035356.522a0ee4Fixed 2026-10-27RHSA-2026:90994
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Ongo-toolset:rhel8-8040020261027035356.522a0ee4Fixed 2026-10-27RHSA-2026:90994
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgo-toolset:rhel8-8060020261020153812.97d7f71fFixed 2026-10-21RHSA-2026:87246
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Ongo-toolset:rhel8-8060020261020153812.97d7f71fFixed 2026-10-21RHSA-2026:87246
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicego-toolset:rhel8-8080020261020152326.6b4b45d8Fixed 2026-10-21RHSA-2026:87245
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsgo-toolset:rhel8-8080020261020152326.6b4b45d8Fixed 2026-10-21RHSA-2026:87245
Red Hat Enterprise Linux 9golang-0:1.26.10-1.el9_8Fixed 2026-10-20RHSA-2026:86196
OpenShift Developer Tools and ServiceshelmOut of support scope
OpenShift Pipelinesopenshift-pipelines-clientFix deferred
OpenShift Serverlesskn-workflow-pluginFix deferred
OpenShift Serverlessopenshift-serverless-clientsFix deferred
OpenShift Service Mesh 3istio-proxyFix deferred
OpenShift Service Mesh 3openshift-golang-builder-containerAffected
Red Hat Ansible Automation Platform 2automation-gateway-proxyFix deferred
Red Hat Ansible Automation Platform 2automation-gateway-proxy-openssl30Out of support scope
Red Hat Ansible Automation Platform 2automation-gateway-proxy-openssl32Out of support scope
Red Hat Ansible Automation Platform 2receptorFix deferred
105 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-94448.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON