CVE-2026-97045: Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/golang-golang-x-netto a version that resolves this vulnerability.Fixed in 1:0.62.0-1 - Upgrade
Upgrade
azurelinux/kubevirtto a version that resolves this vulnerability.Fixed in 1.8.4-5 - Upgrade
Upgrade
azurelinux/daselto a version that resolves this vulnerability.Fixed in 2.8.1-6 - Upgrade
Upgrade
azurelinux/sriov-network-device-pluginto a version that resolves this vulnerability.Fixed in 3.7.0-10 - Upgrade
Upgrade
azurelinux/kubernetesto a version that resolves this vulnerability.Fixed in 1.30.10-33 - Upgrade
Upgrade
azurelinux/kube-vip-cloud-providerto a version that resolves this vulnerability.Fixed in 0.0.10-12 - Upgrade
Upgrade
azurelinux/ghto a version that resolves this vulnerability.Fixed in 2.102.0-3 - Upgrade
Upgrade
azurelinux/docker-composeto a version that resolves this vulnerability.Fixed in 2.27.0-17 - Upgrade
Upgrade
azurelinux/cni-pluginsto a version that resolves this vulnerability.Fixed in 1.4.0-7 - Upgrade
Upgrade
azurelinux/docker-buildxto a version that resolves this vulnerability.Fixed in 0.14.0-20 - Upgrade
Upgrade
azurelinux/cri-toolsto a version that resolves this vulnerability.Fixed in 1.32.0-11 - Upgrade
Upgrade
azurelinux/containerized-data-importerto a version that resolves this vulnerability.Fixed in 1.62.0-10 - Upgrade
Upgrade
azurelinux/cloud-provider-kubevirtto a version that resolves this vulnerability.Fixed in 0.5.1-11 - Upgrade
Upgrade
azurelinux/application-gateway-kubernetes-ingressto a version that resolves this vulnerability.Fixed in 1.7.7-8 - Upgrade
Upgrade
azurelinux/telegrafto a version that resolves this vulnerability.Fixed in 1.31.0-37 - Upgrade
Upgrade
azurelinux/telegrafto a version that resolves this vulnerability.Fixed in 1.31.0-38 - Compensating control
In golang.org/x/net, update childTextNodesAreLiteral to 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, including when the integration point is beneath a foster-parented foreign-namespace element such as <mglyph> or <malignmark> under <mtext>.
Event History
Frequently Asked Questions
What conditions are needed for exploitation?
An attacker would need to influence HTML that is rendered as literal raw text within a tree containing foreign-namespace elements and HTML integration points. The relevant case involves an integration point that is itself beneath an element foster-parented into a foreign namespace, so that reparsing the rendered output resolves the subtree in a different namespace.
Which applications are most relevant to review?
Review applications using go/golang.org/x/net to render HTML containing attacker-influenced content, especially where that content can participate in MathML or other foreign-namespace markup and is later parsed by a browser.
How can I assess whether an existing output path is exposed?
Look for rendered output that contains a foreign-namespace ancestor chain, an HTML integration point, and literal text emitted below that point. The risky pattern is one where an ancestor such as mglyph or malignmark is foster-parented under mtext, allowing the browser to reparse the output under a different foreign namespace.