ADVISORIES

Vulnerability

CVE-2026-27142

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.

6897 advisories report this vulnerability, across 12 ecosystems.

Advisories in Go

  • GO-2026-4603

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

    CVE-2026-27142 Go Updated 15 May 2026

References