GO-2026-5029

Invoking incorrect handling of character references in DOCTYPE nodes in golang.org/x/net/html

At a glance

Published
Updated
CVE
CVE-2026-25681

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 packages

PackageVersions
Go · golang.org/x/netintroduced 0, fixed 0.55.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database