CVE-2026-42502 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in the HTML parser of the Golang x/net package, prior to version 0.55.0. The issue arises from the parser's incorrect handling of namespaced elements in foreign content, which can lead to the execution of XSS attacks when the parsed HTML is rendered. This vulnerability affects applications that attempt to sanitize input HTML before displaying it.
Users can upgrade to Golang x/net version 0.55.0 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/781701 | [email protected] | Issue Tracking |
| https://go.dev/issue/79572 | [email protected] | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 | [email protected] | Mailing List |
| https://pkg.go.dev/vuln/GO-2026-5027 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1021 | Improper Restriction of Rendered UI Layers or Frames | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang net | < 0.55.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 29, 2026 | Initial Analysis | [email protected] |
| May 22, 2026 | CVE Modified | CISA-ADP |
| May 22, 2026 | New CVE Received | [email protected] |