{"id":"CVE-2026-42502","published":"2026-05-22T15:01:21Z","modified":"2026-05-22T17:17:20Z","title":"Invoking incorrect handling of HTML 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.00315,"percentile":0.16897,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/79572","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8","tags":[]},{"url":"https://go.dev/cl/781701","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-5027","tags":[]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":3.38},{"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:16:33.414557Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"golang.org/x/net","vulnerableRanges":["<0.55.0"],"patched":["0.55.0"],"from":["GO-2026-5027"],"provenance":"source"}],"summary":{"text":"The golang.org/x/net/html package, which parses and renders HTML, contains a flaw in how it handles HTML elements in foreign content, so that parsing arbitrary HTML and then rendering it with Render can produce an unexpected tree. An attacker who can supply HTML that an application parses and renders can leverage this to execute cross-site scripting (XSS) against applications that sanitise input before rendering, and this requires user interaction and does not require privileges or prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:31Z"},"euvd":{"id":"EUVD-2026-31448","exploited":false,"provenance":"source"}}