๐Ÿ” CVE Alert

CVE-2026-42502

MEDIUM 6.1

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

CVSS Score
6.1
EPSS Score
0.0%
EPSS Percentile
0th

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.

Vendor golang.org/x/net
Product golang.org/x/net/html
Published May 22, 2026
Last Updated May 22, 2026
Stay Ahead of the Next One

Get instant alerts for golang.org/x/net golang.org/x/net/html

Be the first to know when new medium vulnerabilities affecting golang.org/x/net golang.org/x/net/html are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

golang.org/x/net / golang.org/x/net/html
0 < 0.55.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
go.dev: https://go.dev/issue/79572 groups.google.com: https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 go.dev: https://go.dev/cl/781701 pkg.go.dev: https://pkg.go.dev/vuln/GO-2026-5027

Credits

Tristan Madani