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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*

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 - () https://go.dev/cl/752081 - Mailing List
References () https://go.dev/issue/77954 - () https://go.dev/issue/77954 - Issue Tracking
References () https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk - () https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk - Release Notes
References () https://pkg.go.dev/vuln/GO-2026-4603 - () https://pkg.go.dev/vuln/GO-2026-4603 - Vendor Advisory

16 Mar 2026, 16:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 7.5
v2 : unknown
v3 : 6.1

10 Mar 2026, 18:18

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5
Summary
  • (es) Acciones que insertan URLs en el atributo content de las etiquetas meta HTML no se escapan. Esto puede permitir XSS si la etiqueta meta también tiene un atributo http-equiv con el valor 'refresh'. Se ha añadido una nueva configuración GODEBUG, htmlmetacontenturlescape, que se puede usar para deshabilitar el escape de URLs en acciones en el atributo content de las etiquetas meta que siguen a 'url=' al establecer htmlmetacontenturlescape=0.

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')