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.
History

Fri, 06 Mar 2026 21:45:00 +0000

Type Values Removed Values Added
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.
Title URLs in meta content attribute actions are not escaped in html/template
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published: 2026-03-06T21:28:14.674Z

Updated: 2026-03-06T21:28:14.674Z

Reserved: 2026-02-17T19:57:28.435Z

Link: CVE-2026-27142

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-03-06T22:16:01.177

Modified: 2026-03-06T22:16:01.177

Link: CVE-2026-27142

cve-icon Redhat

No data.