Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
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 or fostered under ), 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.
- Products
- golang.org/x/net/html
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-97045
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 16:31 UTC · Revision 1
Source evidence
Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
core-cve · Original sourcePublished 27 Oct 2026, 21:38 UTC
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 or fostered under ), 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.
cve:CVE-2026-97045
golang.org/x/net/html
Fixed versions: Not specified
Complete source record
{
"id": "f2efee08097ed931dca8d04fa824033123dcd3949969e9a1eda40d7e07e39ffa",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-97045",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net",
"summary": "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 or fostered under ), 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.",
"evidence": "cve:CVE-2026-97045",
"products": [
{
"name": {
"value": "golang.org/x/net/html",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-97045",
"aliases": [
"CVE-2026-97045"
],
"metrics": [],
"affected": [
{
"vendor": "golang.org/x/net",
"product": "golang.org/x/net/html",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "0.62.0",
"versionType": "semver"
}
],
"packageName": "golang.org/x/net/html",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "childTextNodesAreLiteral"
},
{
"name": "Render"
}
]
}
],
"modified": "2026-10-27T21:38:56.700Z",
"provider": "cve",
"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"
],
"provider_metadata": {
"cna": {
"orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
"shortName": "Go",
"dateUpdated": "2026-10-27T21:38:56.700Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-97045",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-cve",
"document_id": 400614,
"published_at": "2026-10-27T21:38:56.7+00:00"
}