CVE-2026-97045 Details
Description
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.
A vulnerability exists in the Golang HTML package, specifically in the x/net/html module, prior to version 0.62.0. The issue arises in the childTextNodesAreLiteral function, where the traversal of the ancestor tree previously halted at the nearest foreign ancestor upon finding an HTML integration point. This could lead to improper namespace handling, as the integration point might be a descendant of an element that was foster-parented into a foreign namespace, such as <mglyph> or <malignmark> under <mtext>. As a result, the parser could misinterpret the subtree's namespace during re-parsing, potentially leading to incorrect rendering or processing of the content. The vulnerability requires careful management of namespace transitions to ensure accurate representation of the text nodes.
Users can upgrade to Golang x/net version 0.62.0 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 27, 2026CISA-ADP
Assessed Nov 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/855121 | [email protected] | Source CodeVendor |
| https://go.dev/issue/82622 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs | [email protected] | Mailing ListRemedyVendor |
| https://pkg.go.dev/vuln/GO-2026-6866 | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| golang.org/x/net/html | < v0.62.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 4, 2026 | CVE Modified | CISA-ADP |
| Oct 27, 2026 | New CVE Received | [email protected] |
Volerion