# GO-2026-6866: Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net

- Database: Go
- Published: 2026-10-27
- Modified: 2026-10-27

## Tracked as

- [CVE-2026-97045](https://cve.now/CVE-2026-97045.md): Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net

## Affected versions

- golang.org/x/net (Go): fixed in 0.62.0

## 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.

## References

- https://go.dev/cl/855121
- https://go.dev/issue/82622
- https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs

Page: https://cve.now/GO-2026-6866

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
