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.
Metrics
Affected Vendors & Products
References
History
Tue, 10 Mar 2026 14:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
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 |
|
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
Updated: 2026-03-10T13:38:17.936Z
Status : Awaiting Analysis
Published: 2026-03-06T22:16:01.177
Modified: 2026-03-10T18:18:44.607
Link: CVE-2026-27142
No data.