Skip to content
Heist/ feed
Back to feed
UnratedFix available

Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net

Type: advisorySources: OSV

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
Affected versions
Not specified
Fixed versions
0.62.0
CVEs
CVE-2026-97045
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 14:56 UTC · Revision 1

Source evidence

Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net

core-osv · Original source

Published 27 Oct 2026, 21:16 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.

osv:GO-2026-6866

golang.org/x/net

Fixed versions: 0.62.0

Complete source record
{
  "id": "5af90c1d150bafb892d8feaa285d8bb03b588487991e458d33be07dafdf0920f",
  "url": "https://osv.dev/vulnerability/GO-2026-6866",
  "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": "osv:GO-2026-6866",
    "products": [
      {
        "name": {
          "value": "golang.org/x/net",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.62.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "GO-2026-6866",
      "aliases": [
        "CVE-2026-97045",
        "GO-2026-6866"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.62.0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang.org/x/net",
            "purl": "pkg:golang/golang.org/x/net",
            "ecosystem": "Go"
          },
          "database_specific": {
            "source": "https://vuln.go.dev/ID/GO-2026-6866.json"
          },
          "ecosystem_specific": {
            "imports": [
              {
                "path": "golang.org/x/net/html",
                "symbols": [
                  "Render",
                  "childTextNodesAreLiteral"
                ]
              }
            ]
          }
        }
      ],
      "modified": "2026-10-27T21:45:08.978077289Z",
      "provider": "osv",
      "references": [
        "https://go.dev/cl/855121",
        "https://go.dev/issue/82622",
        "https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs"
      ],
      "provider_metadata": {
        "url": "https://pkg.go.dev/vuln/GO-2026-6866",
        "review_status": "REVIEWED"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-97045",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 486114,
  "published_at": "2026-10-27T21:16:18+00:00"
}