CVE-2026-27142 json
URLs in meta content attribute actions are not escaped in html/template
published 2026-03-06 8 mo ago modified 2026-09-08 2 mo ago also BIT-golang-2026-27142 , EUVD-2026-10088 , GO-2026-4603
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 31%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami golang 1.25.8, 1.26.1
- go stdlib 1.25.8, 1.26.1
- Go standard library html/template 1.25.8, 1.26.1
- golang-1.26 Debian 14 1.26.1-1
debian advisories DEBIAN-CVE-2026-27142
- golang1.26 hummingbird 1 1.26.2-1.hum1
- golang1.26-bin hummingbird 1 1.26.2-1.hum1
- golang1.26-src hummingbird 1 1.26.2-1.hum1
- golang1.26-misc hummingbird 1 1.26.2-1.hum1
- golang1.26-tests hummingbird 1 1.26.2-1.hum1
- golang1.26-shared hummingbird 1 1.26.2-1.hum1
- golang1.25 hummingbird 1 1.25.8-1.1.hum1
- golang1.25-bin hummingbird 1 1.25.8-1.1.hum1
red hat advisories RHSA-2026:7291RHSA-2026:5192
- go1.25-openssl SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Development Tools 15 SP7 1.25.12-150600.13.21.1
- go1.25-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 1.25.12-150000.1.27.1
- go1.25 SLES for SAP applications 16.0, SLES 16.0 1.25.12-160000.1.1
- go1.25-openssl SLES for SAP applications 16.0, SLES 16.0 1.25.12-160000.1.1
- go1.25 SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 1.25.12-150000.1.44.1
- go1.25 SLES for SAP applications 16.0, SLES 16.0 1.25.8-160000.1.1
- go1.26-openssl SLES for SAP applications 16.0, SLES 16.0 1.26.1-160000.1.1
- govulncheck-vulndb openSUSE Leap 15.6 0.0.20260317T205859-150000.1.152.1
suse advisories SUSE-SU-2026:3151-1SUSE-SU-2026:3046-1SUSE-SU-2026:22643-1SUSE-SU-2026:22638-1SUSE-SU-2026:2817-1SUSE-SU-2026:21200-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
- go1.25 openSUSE Leap 16.0 1.25.12-160000.1.1
- go1.25-openssl openSUSE Leap 16.0 1.25.12-160000.1.1
- go1.25 openSUSE Leap 16.0 1.25.8-160000.1.1
- go1.26-openssl openSUSE Leap 16.0 1.26.1-160000.1.1
- go1.26 openSUSE Leap 16.0 1.26.1-160000.1.1
- go1.25 openSUSE Tumbleweed 1.25.8-1.1
- go1.26 openSUSE Tumbleweed 1.26.1-1.1
opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2026:21324-1openSUSE-SU-2026:21319-1openSUSE-SU-2026:20496-1openSUSE-SU-2026:20537-1openSUSE-SU-2026:20342-1
- go Alpine 3.24, Alpine 3.23 1.25.8-r0
- rclone Alpine 3.24 1.73.5-r0
alpine advisories ALPINE-CVE-2026-27142
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- go.dev/cl/752081 patch
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-27142 updated cvss 5.4
html/template: URLs in meta content attribute actions are not escaped in html/template
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/openshift-golang-builder Red Hat OpenShift Service Mesh 3 openshift-service-mesh/openshift-golang-builder Red Hat Enterprise Linux 8 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 9 golang, go-toolset, golang-bin, golang-src, golang-misc, golang-race, +1 more Red Hat Enterprise Linux 10 golang Red Hat Enterprise Linux AI (RHEL AI) 3 golangaffected: workaround, no fix available “Fix deferred”
+2 more productsfewer
Red Hat OpenShift Container Platform 4 openshift-service-mesh/openshift-golang-builder Red Hat OpenShift Virtualization 4 openshift-service-mesh/openshift-golang-builder -
Red Hat Hardened Images golang1.26 1.26.2-1.hum1, golang1.25 1.25.8-1.1.hum1, golang1.26-bin 1.26.2-1.hum1, golang1.26-src 1.26.2-1.hum1, golang1.26-misc 1.26.2-1.hum1, golang1.25-bin 1.25.8-1.1.hum1, +6 morefixed: vendor fix RHSA-2026:5192
-
Red Hat OpenShift AI 3.4 rhai/base-image-neuron-rhel9 1793042008fixed: vendor fix RHSA-2026:91248
-
Red Hat OpenShift AI 3.5 rhai/base-image-neuron-rhel9 1793042008fixed: vendor fix RHSA-2026:91249
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 7 mo ago
Exploit prediction
0.37% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | golang | <1.25.8 >=1.26.0-0, <1.26.1 |
1.25.8 1.26.1 |
| go | stdlib | <1.25.8 >=1.26.0-0, <1.26.1 |
1.25.8 1.26.1 |
Affected products
- Go standard library html/template
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
go.dev
/cl/752081
mailing-list, discussion, patch
-
pkg.go.dev
/vuln/GO-2026-4603
vendor-advisory, advisory
-
groups.google.com
/g/golang-announce/c/EdhZqrQ98hk
release-notes, article, web
-
go.dev
/issue/77954
issue-tracking, report
-
nvd.nist.gov
/vuln/detail/CVE-2026-27142
web
Sources
- CVE List CVE-2026-27142
- NVD CVE-2026-27142
- OSV BIT-golang-2026-27142
- OSV GO-2026-4603
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.