Go Vulnerability Database
GO-2026-5030
Invoking duplicate attributes can cause XSS in golang.org/x/net/html
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | golang.org/x/net | All versions before 0.55.0 (fixed in 0.55.0) |