cve.bz

CVE-2026-56858 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.25.13, 1.26.6, 1.27.0-rc.3.

On this page
Previously, pathological inputs could close an unescaped '/' early, allowing for attack-controlled data to inject arbitrary content, potentially leading to XSS.

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.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 24th percentile. Scored 2026-11-22. 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-08-14. 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

  • stdlib (Go): fixed in 1.25.13, 1.26.6, 1.27.0-rc.3
  • Debian, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Alpaquita, BellSoft Hardened Containers: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-56858 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-56858?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-56858?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-56858 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

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library html/templatebefore 1.25.13
Go standard library html/templatefrom 1.26.0-0 before 1.26.6
Go standard library html/templatefrom 1.27.0-0 before 1.27.0-rc.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-6091Gostdlib<1.25.13
>=1.26.0-0 <1.26.6
>=1.27.0-0 <1.27.0-rc.3
1.25.13, 1.26.6, 1.27.0-rc.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2026-56858
Debian13golang-1.24no fix listedDEBIAN-CVE-2026-56858
Debian14golang-1.261.26.6-1DEBIAN-CVE-2026-56858
Debian14golang-1.271.27~rc3-1DEBIAN-CVE-2026-56858
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2026-56858
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2026-56858
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2026-56858
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18 and 3 moreno fix listedUBUNTU-CVE-2026-56858
Ubuntu22.04:LTSgolang-1.17, golang-1.18, golang-1.20 and 5 moreno fix listedUBUNTU-CVE-2026-56858
Ubuntu24.04:LTSgolang-1.21, golang-1.22, golang-1.23 and 2 moreno fix listedUBUNTU-CVE-2026-56858
Ubuntu26.04:LTSgolang-1.23, golang-1.24, golang-1.25no fix listedUBUNTU-CVE-2026-56858
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2026-56858
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2026-56858
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2026-56858
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2026-56858
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.251.25.13-150000.1.50.1SUSE-SU-2026:3640-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.261.26.6-150000.1.24.1SUSE-SU-2026:3641-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.0-150000.1.6.1SUSE-SU-2026:3830-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.25-openssl1.25.14-150000.1.33.1SUSE-SU-2026:3800-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.7-150000.1.18.1SUSE-SU-2026:3799-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6go1.25-openssl1.25.14-150600.13.27.1SUSE-SU-2026:3815-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.7-150600.13.15.1SUSE-SU-2026:3816-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.251.25.13-160000.1.1SUSE-SU-2026:23300-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.25-openssl1.25.14-160000.1.1SUSE-SU-2026:23573-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.261.26.6-160000.1.1SUSE-SU-2026:23301-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.26-openssl1.26.7-160000.1.1SUSE-SU-2026:23576-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0govulncheck-vulndb0.0.20260827T195228-160000.1.1SUSE-SU-2026:23625-1
openSUSELeap 16.0go1.251.25.13-160000.1.1openSUSE-SU-2026:21592-1
openSUSELeap 16.0go1.25-openssl1.25.14-160000.1.1openSUSE-SU-2026:21696-1
openSUSELeap 16.0go1.261.26.6-160000.1.1openSUSE-SU-2026:21593-1
openSUSELeap 16.0go1.26-openssl1.26.7-160000.1.1openSUSE-SU-2026:21705-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260827T195228-160000.1.1openSUSE-SU-2026:21761-1
openSUSELeap 16.0rclone1.75.1-bp160.1.1openSUSE-SU-2026:21999-1
openSUSETumbleweedgo1.251.25.13-1.1openSUSE-SU-2026:11516-1
openSUSETumbleweedgo1.261.26.6-1.1openSUSE-SU-2026:11517-1
openSUSETumbleweedgo1.271.27rc3-1.1openSUSE-SU-2026:11536-1
openSUSETumbleweedrclone1.75.1-1.1openSUSE-SU-2026:11727-1
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+3901+4b80ecd7ALSA-2026:63163
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+3909+6e1c1eb7ALSA-2026:63163
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+4023+db236c53ALSA-2026:63163
AlmaLinux8aardvark-dns2:1.10.1-2.module_el8.10.0+4047+545787c4ALSA-2026:63163
AlmaLinux8buildah, buildah-tests2:1.33.14-6.module_el8.10.0+4269+94686149ALSA-2026:63163
AlmaLinux8cockpit-podman84.1-1.module_el8.10.0+4102+6c76e544ALSA-2026:63163
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2026:63163
AlmaLinux8conmon3:2.1.10-1.module_el8.10.0+3970+8445edf6ALSA-2026:63163
AlmaLinux8container-selinux2:2.229.0-3.module_el8.10.0+4213+0493256bALSA-2026:63163
AlmaLinux8containernetworking-plugins1:1.4.0-10.module_el8.10.0+4269+94686149ALSA-2026:63163
AlmaLinux8containers-common2:1-82.module_el8.10.0+4016+efd18bf8ALSA-2026:63163
AlmaLinux8containers-common2:1-82.module_el8.10.0+4068+0e21408fALSA-2026:63163
68 more for AlmaLinux in the JSON.
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1874+ce489889RLSA-2026:63163
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1880+8e896d1bRLSA-2026:63163
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1896+b18fa106RLSA-2026:63163
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+1948+4b5cd4a9RLSA-2026:63163
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+2001+6a33db9fRLSA-2026:63163
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+40047+0c0a73f4RLSA-2026:63163
Rocky Linux8aardvark-dns2:1.10.1-2.module+el8.10.0+40133+32c21f88RLSA-2026:63163
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2026:63163
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1825+623b0c20RLSA-2026:63163
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1843+6892ab28RLSA-2026:63163
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1872+2e18eb19RLSA-2026:63163
Rocky Linux8cockpit-podman0:84.1-1.module+el8.10.0+1874+ce489889RLSA-2026:63163
131 more for Rocky Linux in the JSON.
Alpinev3.24go1.26.8-r0ALPINE-CVE-2026-56858
Azure Linux3golangno fix listedAZL-96650 AZL-96674 AZL-98964
Alpaquita23, 25go1.25.14-r0BELL-CVE-2026-56858
Alpaquitastreamgo1.26.7-r0BELL-CVE-2026-56858
BellSoft Hardened Containers23, 25go1.25.14-r0BELL-CVE-2026-56858
BellSoft Hardened Containersstreamgo1.26.7-r0BELL-CVE-2026-56858

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; 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 · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important cross-site scripting (XSS) vulnerability in the Go `html/template` package. Applications utilizing this package to render untrusted input are susceptible to arbitrary content injection due to a flaw in how pathological inputs are handled, potentially leading to client-side script execution.

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
Cryostat 4 on RHEL 9cryostat/cryostat-storage-rhel9:4.2.0-22Fixed 2026-09-16RHSA-2026:68333
Cryostat 4 on RHEL 9cryostat/cryostat-storage-rhel9:4.2.0-28Fixed 2026-11-04RHSA-2026:95360
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-gateway-proxy-0:2.5.10-8.el8apFixed 2026-09-23RHSA-2026:71114
Red Hat Ansible Automation Platform 2.5 for RHEL 8receptor-0:1.6.8-1.el8apFixed 2026-09-23RHSA-2026:71114
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-gateway-proxy-0:2.6.17-3.el9apFixed 2026-09-23RHSA-2026:71114
Red Hat Ansible Automation Platform 2.5 for RHEL 9receptor-0:1.6.8-1.el9apFixed 2026-09-23RHSA-2026:71114
Red Hat Ansible Automation Platform 2.6 for RHEL 10receptor-0:1.6.8-1.el10apFixed 2026-09-23RHSA-2026:71113
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-gateway-proxy-0:2.6.17-3.el9apFixed 2026-09-23RHSA-2026:71113
Red Hat Ansible Automation Platform 2.6 for RHEL 9receptor-0:1.6.8-1.el9apFixed 2026-09-23RHSA-2026:71113
Red Hat Ansible Automation Platform 2.7 for RHEL 10receptor-0:1.6.8-1.el10apFixed 2026-09-23RHSA-2026:71112
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Affected
AWS Load Balancer Operatoralbo/aws-load-balancer-controller-rhel8Affected
Confidential Compute Attestationbuild-of-trustee/trustee-rhel9-operatorAffected
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorAffected
Exploit Intelligenceexploit-intelligence-tech-preview/agent-client-rhel9Will not fix
Exploit Intelligenceexploit-intelligence-tech-preview/exploit-intelligence-operator-controller-rhel9Will not fix
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Will not fix
ExternalDNS Operatoredo/external-dns-rhel9Affected
ExternalDNS Operatoredo/external-dns-rhel9-operatorAffected
File Integrity Operatorcompliance/openshift-compliance-operator-bundleNot affected
609 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-56858.

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