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

Tue, 10 Mar 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 09 Mar 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library html/template
Vendors & Products Go Standard Library
Go Standard Library html/template

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-10T13:38:25.067Z

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

Link: CVE-2026-27142

cve-icon Vulnrichment

Updated: 2026-03-10T13:38:17.936Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-03-10T18:18:44.607

Link: CVE-2026-27142

cve-icon Redhat

No data.