{"id":"CVE-2026-97045","state":"PUBLISHED","title":"Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net","description":"In childTextNodesAreLiteral, walking up the tree previously stopped at the nearest foreign ancestor once an HTML integration point was found. However, that integration point may itself be a descendant of an element that was foster-parented into a foreign namespace (such as <mglyph> or <malignmark> fostered under <mtext>), causing a parser to resolve the subtree in a different foreign namespace upon re-parsing the rendered output. Continue walking the full ancestor chain and verify that every transition from a non-empty namespace occurs at an HTML integration point before emitting literal text.","publishedAt":"2026-10-27T21:38:56.700Z","updatedAt":"2026-10-27T21:38:56.700Z","severity":null,"assigner":"Go","products":["golang.org/x/net golang.org/x/net/html"],"affected":[{"vendor":"golang.org/x/net","product":"golang.org/x/net/html","packageName":"golang.org/x/net/html","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.62.0","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"childTextNodesAreLiteral"},{"name":"Render"}]}],"references":["https://go.dev/cl/855121","https://go.dev/issue/82622","https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs","https://pkg.go.dev/vuln/GO-2026-6866"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/97xxx/CVE-2026-97045.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-97045","state":"PUBLISHED","datePublished":"2026-10-27T21:38:56.700Z","dateUpdated":"2026-10-27T21:38:56.700Z","assignerShortName":"Go","assignerOrgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateReserved":"2026-09-23T23:05:04.988Z"},"containers":{"cna":{"title":"Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net","descriptions":[{"lang":"en","value":"In childTextNodesAreLiteral, walking up the tree previously stopped at the nearest foreign ancestor once an HTML integration point was found. However, that integration point may itself be a descendant of an element that was foster-parented into a foreign namespace (such as <mglyph> or <malignmark> fostered under <mtext>), causing a parser to resolve the subtree in a different foreign namespace upon re-parsing the rendered output. Continue walking the full ancestor chain and verify that every transition from a non-empty namespace occurs at an HTML integration point before emitting literal text."}],"affected":[{"vendor":"golang.org/x/net","product":"golang.org/x/net/html","packageName":"golang.org/x/net/html","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.62.0","versionType":"semver"}],"collectionURL":"https://pkg.go.dev","programRoutines":[{"name":"childTextNodesAreLiteral"},{"name":"Render"}]}],"references":[{"url":"https://go.dev/cl/855121"},{"url":"https://go.dev/issue/82622"},{"url":"https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs"},{"url":"https://pkg.go.dev/vuln/GO-2026-6866"}],"problemTypes":[{"descriptions":[{"lang":"en","description":"CWE-79"}]}],"providerMetadata":{"shortName":"Go","orgId":"1bb62c36-49e3-4200-9d77-64a1400537cc","dateUpdated":"2026-10-27T21:38:56.700Z"},"credits":[{"lang":"en","value":"Ali Sherif (https://www.linkedin.com/in/ali-sherif-13812b276)"}]}}}}