CVE-2026-42502

Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications that attempt to sanitize input HTML before rendering.
Configurations

Configuration 1 (hide)

cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*

History

23 Jul 2026, 16:10

Type Values Removed Values Added
Summary
  • (es) Procesar HTML arbitrario que luego se renderiza usando Render puede resultar en un árbol HTML inesperado. Esto puede ser explotado para ejecutar ataques XSS en aplicaciones que intentan sanear el HTML de entrada antes de renderizar.

29 May 2026, 19:09

Type Values Removed Values Added
References () https://go.dev/cl/781701 - () https://go.dev/cl/781701 - Issue Tracking
References () https://go.dev/issue/79572 - () https://go.dev/issue/79572 - Issue Tracking
References () https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 - () https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 - Mailing List
References () https://pkg.go.dev/vuln/GO-2026-5027 - () https://pkg.go.dev/vuln/GO-2026-5027 - Vendor Advisory
First Time Golang net
Golang
CWE CWE-1021
CPE cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*

22 May 2026, 18:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-22 16:16

Updated : 2026-07-23 16:10


NVD link : CVE-2026-42502

Mitre link : CVE-2026-42502

CVE.ORG link : CVE-2026-42502


JSON object : View

Products Affected

golang

  • net
CWE
CWE-1021

Improper Restriction of Rendered UI Layers or Frames