Skip to content
CVE PROGRAM SOURCE RECORD6.1 Medium

CVE-2026-27142

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

Description

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library html/template

Default version status: unaffected

  • 0 to < 1.25.8affected
  • 1.26.0-0 to < 1.26.1affected

References