6.1Medium
CVE-2026-42506Invoking incorrect handling of namespaced elements in foreign content in golang.org/x/net/html
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.
Weakness (CWE):
CWE-79
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| golang | net | < 0.55.0 | |
| golang.org/x/net | golang.org/x/net/html | < 0.55.0 |
References and patches
- https://go.dev/issue/79571 Issue Tracking
- https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 Mailing List
- https://go.dev/cl/781700 Issue Tracking
- https://pkg.go.dev/vuln/GO-2026-5025 Vendor Advisory
CPE matches (NVD) (1)
cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*< 0.55.0