Cross-Site Scripting Vulnerability in Go Programming Language
CVE-2026-42502

Currently unrated

Key Information:

Vendor
CVE Published:
22 May 2026

What is CVE-2026-42502?

The vulnerability in Go's Render function arises from improper parsing of arbitrary HTML. This weakness can lead to the creation of unexpected HTML trees, which may enable attackers to carry out Cross-Site Scripting (XSS) attacks, particularly in applications that attempt to sanitize user input HTML before rendering it.

Affected Version(s)

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

References

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Tristan Madani
.