CVE-2026-27142Golang Go
Cross-Site Scripting (XSS) en atributo content de meta tags en Go
Media 6.1 Sin autenticación
Seguir: esta CVE · Golang · Golang Go Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 52
- CVSS 3.1
- 6.1
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 6 mar 2026
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-79
- SSVC (CISA)
- Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Qué pasa
Las acciones que insertan URLs en el atributo content de meta tags HTML no escapan correctamente, permitiendo XSS cuando el meta tag tiene un atributo http-equiv con valor "refresh". Afecta a Go versiones anteriores a 1.25.8 y 1.26.0. Se ha añadido un parámetro GODEBUG para controlar este comportamiento.
Ver el texto original de NVD (en inglés)
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.
Qué hacer
Hay parche · versiones corregidas: 1.25.8, 1.26.1
Actualiza Go a versión 1.25.8 o posterior (1.26.1 o superior para la rama 1.26). Como mitigación temporal, puedes usar GODEBUG=htmlmetacontenturlescape=0.
- Aplica la actualización de seguridad del fabricante para Go.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| Go | stdlib |
< 1.25.8 |
1.25.8 |
go get stdlib@v1.25.8 |
| Go | stdlib |
≥ 1.26.0-0 < 1.26.1 |
1.26.1 |
go get stdlib@v1.26.1 |
Según OSV / GitHub Advisories (GO-2026-4603). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| golang | go | < 1.25.8 |
| golang | go | 1.26.0 |
Boletines oficiales
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · 30 jul 2026 Crítica
- Security update for go1.25-openssl · SUSE · SUSE-SU-2026:3151-1 · 21 jul 2026 Alta
- Security update for go1.25-openssl · SUSE · SUSE-SU-2026:3046-1 · 15 jul 2026 Alta
- Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update · Red Hat · RHSA-2026:7291 · 14 may 2026 Crítica
- Red Hat Security Advisory: Red Hat Hardened Images RPM Release · Red Hat · RHSA-2026:5192 · 21 mar 2026 Media
Además: SUSE (+19)
Avisos de fabricantes, CERT y distribuciones que nombran esta CVE. Títulos sin modificar.
En redes
1 persona y 1 post en Bluesky en los últimos 30 días.
Los posts más recientes, sin bots ni feeds automáticos. El texto es de sus autores. Buscar en Bluesky
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- go.dev Mailing List
- go.dev Issue Tracking
- groups.google.com Release Notes
- pkg.go.dev Vendor Advisory