Skip to content
6.1 Medium

CVE-2026-27142 Actions which insert URLs into the content attribute of HTML meta tags are not escaped

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 and versions

Product Affected versions Fixed in
html/template 1.26 1.26.0-0 → < 1.26.1 1.26.1
html/template 1.25 earliest → < 1.25.8 1.25.8

References

Timeline

  1. Published
  2. Last modified
The 14 CVEs of html/template →
Track this CVE