{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-97045",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "state": "PUBLISHED",
        "assignerShortName": "Go",
        "dateReserved": "2026-09-23T23:05:04.988Z",
        "datePublished": "2026-10-27T21:38:56.700Z",
        "dateUpdated": "2026-10-27T21:38:56.700Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2026-10-27T21:38:56.700Z"
            },
            "title": "Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "vendor": "golang.org/x/net",
                    "product": "golang.org/x/net/html",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "golang.org/x/net/html",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "0.62.0",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "programRoutines": [
                        {
                            "name": "childTextNodesAreLiteral"
                        },
                        {
                            "name": "Render"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE-79"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://go.dev/cl/855121"
                },
                {
                    "url": "https://go.dev/issue/82622"
                },
                {
                    "url": "https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs"
                },
                {
                    "url": "https://pkg.go.dev/vuln/GO-2026-6866"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Ali Sherif (https://www.linkedin.com/in/ali-sherif-13812b276)"
                }
            ]
        }
    }
}