XSS in Golang Go
CVE-2026-27142
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.004, 31.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go — versions 1.26.0
- Go Standard Library Html/template — versions 0, 1.26.0-0
Weakness classification (CWE)
References
- groups.google.com/g/golang-announce/c/EdhZqrQ98hk (Release Notes)
- go.dev/issue/77954 (Issue Tracking)
- go.dev/cl/752081 (Mailing List)
- pkg.go.dev/vuln/GO-2026-4603 (Vendor Advisory)