cve.bz

CVE-2026-27142 golang go: Cross-site Scripting

6.1 mediumEPSS 0.4%Fix available

Medium (6.1) in golang go. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.25.8, 1.26.1.

On this page
Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.

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.4% (unchanged from 0.4% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-21. 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-03-16. 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
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-27142 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-27142?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-27142?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-27142 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.8
Go standard library html/templatefrom 1.26.0-0 before 1.26.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-4603Gostdlib<1.25.8
>=1.26.0-0 <1.26.1
1.25.8, 1.26.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2026-27142
Debian13golang-1.24no fix listedDEBIAN-CVE-2026-27142
Debian14golang-1.261.26.1-1DEBIAN-CVE-2026-27142
Ubuntu22.04:LTS, 25.10golang-1.24, golang-1.25no fix listedUBUNTU-CVE-2026-27142
Ubuntu24.04:LTS, 26.04:LTSgolang-1.24, golang-1.25, golang-1.26no fix listedUBUNTU-CVE-2026-27142
Ubuntu26.10golang-1.26no fix listedUBUNTU-CVE-2026-27142
Red Hathummingbird:1golang1.25, golang1.25-bin, golang1.25-src and 4 more0:1.25.8-1.1.hum1RHSA-2026:5192
Red Hathummingbird:1golang1.26, golang1.26-bin, golang1.26-src and 4 more0:1.26.2-1.hum1RHSA-2026:7291
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.12-150000.1.44.1SUSE-SU-2026:2817-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.251.25.8-150000.1.32.1SUSE-SU-2026:0875-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.1-150000.1.6.1SUSE-SU-2026:0876-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.12-150000.1.27.1SUSE-SU-2026:3046-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.8-150000.1.18.1SUSE-SU-2026:0947-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.1-150000.1.3.1SUSE-SU-2026:0993-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.12-150600.13.21.1SUSE-SU-2026:3151-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.8-150600.13.15.1SUSE-SU-2026:0977-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.1-150600.13.3.1SUSE-SU-2026:0976-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.251.25.12-160000.1.1SUSE-SU-2026:22643-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.251.25.8-160000.1.1SUSE-SU-2026:21200-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.25-openssl1.25.12-160000.1.1SUSE-SU-2026:22638-1
1 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6go1.251.25.8-150000.1.32.1SUSE-SU-2026:0875-1
openSUSELeap 15.6go1.25-openssl1.25.8-150600.13.15.1SUSE-SU-2026:0977-1
openSUSELeap 15.6go1.261.26.1-150000.1.6.1SUSE-SU-2026:0876-1
openSUSELeap 15.6go1.26-openssl1.26.1-150600.13.3.1SUSE-SU-2026:0976-1
openSUSELeap 15.6govulncheck-vulndb0.0.20260317T205859-150000.1.152.1SUSE-SU-2026:1042-1
openSUSELeap 16.0go1.251.25.12-160000.1.1openSUSE-SU-2026:21324-1
openSUSELeap 16.0go1.251.25.8-160000.1.1openSUSE-SU-2026:20496-1
openSUSELeap 16.0go1.25-openssl1.25.12-160000.1.1openSUSE-SU-2026:21319-1
openSUSELeap 16.0go1.261.26.1-160000.1.1openSUSE-SU-2026:20342-1
openSUSELeap 16.0go1.26-openssl1.26.1-160000.1.1openSUSE-SU-2026:20537-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgo1.251.25.8-1.1openSUSE-SU-2026:10310-1
1 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.23, v3.24go1.25.8-r0ALPINE-CVE-2026-27142
Alpinev3.24rclone1.73.5-r0ALPINE-CVE-2026-27142
Azure Linux2gccno fix listedAZL-79604
Azure Linux2golangno fix listedAZL-79616 AZL-79619
Azure Linux2msft-golangno fix listedAZL-79634
Azure Linux2python-tensorboardno fix listedAZL-79637
Azure Linux2tensorflowno fix listedAZL-79643
Azure Linux3gccno fix listedAZL-79601
Azure Linux3golangno fix listedAZL-79607 AZL-79622 AZL-98571
Azure Linux3python-tensorboardno fix listedAZL-79640
Azure Linux3tensorflowno fix listedAZL-79649
Alpaquita23, 25go1.25.8-r0BELL-CVE-2026-27142
Alpaquitastreamgo1.26.1-r0BELL-CVE-2026-27142
BellSoft Hardened Containers23, 25go1.25.8-r0BELL-CVE-2026-27142
BellSoft Hardened Containersstreamgo1.26.1-r0BELL-CVE-2026-27142

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; 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 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 Hardened Imagesgolang1-25-main-1.25.8-1.1.hum1Fixed 2026-03-20RHSA-2026:5192
Red Hat Hardened Imagesgolang1-26-main-1.26.2-1.hum1Fixed 2026-04-09RHSA-2026:7291
Red Hat OpenShift AI 3.4rhai/base-image-neuron-rhel9:1793042008Fixed 2026-10-27RHSA-2026:91248
Red Hat OpenShift AI 3.5rhai/base-image-neuron-rhel9:1793042008Fixed 2026-10-27RHSA-2026:91249
OpenShift Service Mesh 2openshift-golang-builder-containerFix deferred
OpenShift Service Mesh 3openshift-golang-builder-containerFix deferred
Red Hat Enterprise Linux 10golangFix deferred
Red Hat Enterprise Linux 8go-toolset:rhel8/golangFix deferred
Red Hat Enterprise Linux 9golangFix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3golangFix deferred
Red Hat OpenShift Container Platform 4openshift-golang-builder-containerFix deferred
Red Hat OpenShift Virtualization 4openshift-golang-builder-containerFix deferred

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-27142.

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