{"id":"CVE-2026-42506","summary":"Invoking  incorrect handling of namespaced elements in foreign content in golang.org/x/net/html","details":"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.","aliases":["GO-2026-5025"],"modified":"2026-06-06T07:44:11.823667011Z","published":"2026-05-22T15:01:21.056Z","related":["CGA-c62r-25jr-fmqg","SUSE-SU-2026:2285-1","openSUSE-SU-2026:10856-1","openSUSE-SU-2026:10923-1","openSUSE-SU-2026:10930-1","openSUSE-SU-2026:10941-1","openSUSE-SU-2026:20892-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42506.json","cna_assigner":"Go","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"fixed":"0.55.0"}]}]},"references":[{"type":"WEB","url":"https://go.dev/cl/781700"},{"type":"WEB","url":"https://go.dev/issue/79571"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8"},{"type":"WEB","url":"https://pkg.go.dev"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2026-5025"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42506.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42506"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/golang/net","events":[{"introduced":"0"},{"fixed":"7770ec48d03fec35e378665337b4faca93c38423"}],"database_specific":{"cpe":"cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*","source":"CPE_RANGE","extracted_events":[{"introduced":"0"},{"fixed":"0.55.0"}]}}],"versions":["v0.54.0","v0.41.0","v0.53.0","v0.52.0","v0.51.0","v0.50.0","v0.49.0","v0.48.0","v0.47.0","v0.46.0","v0.45.0","v0.44.0","v0.43.0","v0.42.0","v0.40.0","v0.39.0","v0.38.0","v0.37.0","v0.36.0","v0.35.0","v0.34.0","v0.33.0","v0.32.0","v0.31.0","v0.30.0","v0.29.0","v0.28.0","v0.27.0","v0.26.0","v0.25.0","v0.24.0","v0.23.0","v0.19.0","v0.22.0","v0.21.0","v0.20.0","v0.18.0","v0.17.0","v0.16.0","v0.15.0","v0.14.0","v0.13.0","v0.12.0","v0.11.0","v0.10.0","v0.9.0","v0.8.0","v0.7.0","v0.4.0","v0.6.0","v0.5.0","v0.3.0","v0.2.0","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-42506.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}