CVE-2026-42506
JSON

6.1medium

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

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

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-79

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)

Parsear HTML arbitrario que luego es renderizado usando Render puede resultar en un árbol HTML inesperado. Esto puede ser aprovechado para ejecutar ataques XSS en aplicaciones que intentan sanear el HTML de entrada antes de renderizar.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-42506 changed 2026-05-22CVE Terms of Use
Go Vulnerability DatabaseGO-2026-5025 changed 2026-05-30CC-BY-4.0
NVDCVE-2026-42506 changed 2026-07-23Public domain