CVE-2026-27142

published 6 Mar 2026 · updated 16 Nov 2026

URLs in meta content attribute actions are not escaped in html/template

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.25.8 and 1.26.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.25.8, >=1.26.0-0 <1.26.11.25.8, 1.26.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-27142 severity on Zeptric[![CVE-2026-27142](https://zeptric.io/badge/cve/CVE-2026-27142.svg)](https://zeptric.io/cve/CVE-2026-27142)