VulnWatch by ve1ve2
medium 6.1 EPSS 0.22%

GO-2026-5027: Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
google golang.org/x/net

https://osv.dev/vulnerability/GO-2026-5027 ↗

osvgofix-available

Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html 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: Go:golang.org/x/net Fixed in: 0.55.0 References: https://go.dev/issue/79572 https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 https://go.dev/cl/781701

Linked vulnerabilities (1)

CVE-2026-42502 medium 6.1 EPSS 0.22% (p13) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

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

CWE: CWE-1021NVD: Analyzed