Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree.
- CVSS
- 6.1Medium
- Chance of exploitation (EPSS)
- —
- Published
- May 22, 2026
- In the news
- Not yet
What to do
A moderate cross-site scripting flaw in Golang Net that can be attacked over the network without logging in, if someone is tricked into an action. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 0.55.0
Affected versions
- Golang.org X Net Html
- Before 0.55.0
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
Get alerts for these →Timeline 1
Latest change: CVE-2026-42506 published (CVSS 6.1) (May 22, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, May 22, 2026
- CVECVE-2026-42506 published (CVSS 6.1)CVE Program · 16:16 UTC
References 4
- pkg.go.dev Vendor Advisory /vuln/GO-2026-5025
- go.dev /cl/781700
- go.dev /issue/79571
- groups.google.com /g/golang-announce/c/iI-mYSI0lu8