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.
References
| Link | Resource |
|---|---|
| https://go.dev/cl/752081 | Mailing List |
| https://go.dev/issue/77954 | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk | Release Notes |
| https://pkg.go.dev/vuln/GO-2026-4603 | Vendor Advisory |
Configurations
Configuration 1 (hide)
|
History
No history.
Information
Published : 2026-03-06 22:16
Updated : 2026-06-17 10:26
NVD link : CVE-2026-27142
Mitre link : CVE-2026-27142
CVE.ORG link : CVE-2026-27142
JSON object : View
Products Affected
golang
- go
CWE
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
