What’s Vulnerable › Vulnerabilities

CVE-2026-42502: Invoking incorrect handling of HTML 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.

Affected products

How to fix

Upgrade to a fixed version: golang.org/x/net/html 0.55.0; Golang.Org/X/Net 0.55.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-42502 or the next vulnerability affects your stack