VDB
Sign up
MEDIUM6.1

GO-2026-5025

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

Quick fix

GO-2026-5025 — golang.org/x/net: upgrade to the fixed version with the command below.

go get golang.org/x/net@v0.55.0

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/net
Introduced in: 0Fixed in: 0.55.0
Fixgo get golang.org/x/net@v0.55.0

References