CVE-2026-42506

published 22 May 2026 · updated 31 Oct 2026

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

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.55.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
golang.org/x/net<0.55.00.55.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-42506 severity on Zeptric[![CVE-2026-42506](https://zeptric.io/badge/cve/CVE-2026-42506.svg)](https://zeptric.io/cve/CVE-2026-42506)