Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html
cve-program · CVE-2026-42502
PublishedParsing 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.
Read the publisher's advisoryeuvd · EUVD-2026-31448
PublishedParsing 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.
Read the publisher's advisorynvd · CVE-2026-42502
PublishedParsing 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.
Read the publisher's advisoryosv · GO-2026-5027
PublishedParsing 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-42502 · CVE overview and exploitation status
cve-program · CVE-2026-42502
- https://go.dev/issue/79572
- https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8
- https://go.dev/cl/781701
- https://pkg.go.dev/vuln/GO-2026-5027
euvd · EUVD-2026-31448
- https://go.dev/issue/79572
- https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8
- https://go.dev/cl/781701
- https://pkg.go.dev/vuln/GO-2026-5027
nvd · CVE-2026-42502
- https://go.dev/cl/781701
- https://go.dev/issue/79572
- https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8
- https://pkg.go.dev/vuln/GO-2026-5027