ADVISORIES

Vulnerability

CVE-2026-42502

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.

4277 advisories report this vulnerability, across 13 ecosystems.

Advisories in Go

  • GO-2026-5027

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

    CVE-2026-42502 Go Updated 23 November 2026

References