CVEfocus › CVE database › CVE-2026-27142

CVE-2026-27142URLs in meta content attribute actions are not escaped in html/template

CVSS 6.1 MediumEPSS 0.4% (higher than 25% of CVEs)Published 2026-03-06Updated 2026-03-16Assigner: Go

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.

What to do

Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
27Fix pending
8Under investigation
2Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-1.26Fix pendingUBUNTU-CVE-2026-27142
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2026-27142
Ubuntu 26.04golang-1.25Under investigationUBUNTU-CVE-2026-27142
Ubuntu 26.04golang-1.26Under investigationUBUNTU-CVE-2026-27142
Ubuntu 25.10golang-1.24Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-27142
Ubuntu 25.10golang-1.25Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-27142
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2026-27142
Ubuntu 24.04golang-1.25Under investigationUBUNTU-CVE-2026-27142
Ubuntu 24.04golang-1.26Under investigationUBUNTU-CVE-2026-27142
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2026-27142
Ubuntu 22.04golang-1.25Under investigationUBUNTU-CVE-2026-27142
Ubuntu 22.04golang-1.26Not affected
vulnerable_code_not_present
Debian 14golang-1.26Fixed1.26.1-1DEBIAN-CVE-2026-27142
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2026-27142
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2026-27142
Red Hat Enterprise Linux 10go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 10golangFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 10golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 9go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 9golangFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 9golang-testsFix pending
Fix deferred
Red Hat Enterprise Linux 8go-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 8golangFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-binFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-docsFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-miscFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-raceFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-srcFix pending
Fix deferred
Red Hat Enterprise Linux 8golang-testsFix pending
Fix deferred
Alpine Linux 3.24goFixed1.25.8-r0ALPINE-CVE-2026-27142
Alpine Linux 3.24rcloneFixed1.73.5-r0ALPINE-CVE-2026-27142
Alpine Linux 3.23goFixed1.25.8-r0ALPINE-CVE-2026-27142
Go librarystdlibFixed1.25.8GO-2026-4603

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.