CVE-2026-42502
JSON

6.1medium

Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html

Severity
6.1medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2026-5027

Description

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.

Affected

Product or packageVersionsReported by
golang.org/x/net/htmlbefore 0.55.0CVE List
golang.org/x/net (Go)before 0.55.0Go Vulnerability Database
golang netbefore 0.55.0NVD

Classification

CWE-79CWE-1021

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (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.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-42502 changed 2026-05-22CVE Terms of Use
Go Vulnerability DatabaseGO-2026-5027 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-42502 changed 2026-07-23Public domain