GO-2026-6866

Source
https://pkg.go.dev/vuln/GO-2026-6866
Import Source
https://vuln.go.dev/ID/GO-2026-6866.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2026-6866
Aliases
  • CVE-2026-97045
Published
2026-10-27T21:16:18Z
Modified
2026-10-27T21:45:08Z
Summary
Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
Details

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.

Database specific
{
    "review_status":  "REVIEWED",
    "url":  "https://pkg.go.dev/vuln/GO-2026-6866"
}
References
Credits
    • Ali Sherif (https://www.linkedin.com/in/ali-sherif-13812b276)

Affected packages

Go / golang.org/x/net

Package

Name
golang.org/x/net
View open source insights on deps.dev
Purl
pkg:golang/golang.org/x/net

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.62.0

Ecosystem specific

{
    "imports":  [
        {
            "path":  "golang.org/x/net/html",
            "symbols":  [
                "Render",
                "childTextNodesAreLiteral"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-6866.json"