{"id":"CVE-2026-42506","published":"2026-05-22T15:01:21Z","modified":"2026-05-22T17:45:49Z","title":"Invoking incorrect handling of namespaced elements in foreign content in golang.org/x/net/html","vendor":"golang.org/x/net","product":"golang.org/x/net/html","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00333,"percentile":0.18946,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/79571","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8","tags":[]},{"url":"https://go.dev/cl/781700","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-5025","tags":[]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":3.79},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"golang-org-x-net","affectedVersions":[{"vendor":"golang.org/x/net","product":"golang.org/x/net/html","versions":["< 0.55.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-22T17:45:29.886387Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"golang.org/x/net","vulnerableRanges":["<0.55.0"],"patched":["0.55.0"],"from":["GO-2026-5025"],"provenance":"source"}],"summary":{"text":"The golang.org/x/net/html package mishandles namespaced elements in foreign content, so parsing arbitrary HTML and then rendering it with Render can produce an unexpected HTML tree. An attacker can exploit this over the network, without authentication, by supplying crafted HTML that requires user interaction to be processed, in applications that sanitize input HTML before rendering it, to execute cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:44Z"},"euvd":{"id":"EUVD-2026-31446","exploited":false,"provenance":"source"}}