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
21 Apr 2026, 14:30
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:* cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
|
| CWE | CWE-79 | |
| First Time |
Golang go
Golang |
|
| References | () https://go.dev/cl/752081 - Mailing List | |
| References | () https://go.dev/issue/77954 - Issue Tracking | |
| References | () https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk - Release Notes | |
| References | () https://pkg.go.dev/vuln/GO-2026-4603 - Vendor Advisory |
16 Mar 2026, 16:16
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 6.1 |
10 Mar 2026, 18:18
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 7.5 |
| Summary |
|
06 Mar 2026, 22:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-03-06 22:16
Updated : 2026-04-21 14:30
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')
