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.
Published: 2026-10-27
Score: n/a
EPSS: n/a
KEV: No
Impact: Incorrect namespace processing may allow injection of malicious content
Action: Patch Now
AI Analysis

Impact

In the golang.org/x/net HTML parser, the childTextNodesAreLiteral routine stopped walking up the element tree when it encountered the nearest foreign ancestor after an HTML integration point. When that integration point itself was inside a foster-parented element in a different XML namespace, the parser would produce output that was parsed again as a different foreign namespace. The result is that literal text is emitted without verifying that every transition from a non-empty namespace occurs at an HTML integration point, which can cause unintended markup to be rendered. This flaw may enable an attacker who can influence the parser input to inject HTML or SVG elements that bypass normal namespace checks, leading to potential cross-site scripting or similar injection issues.

Affected Systems

Affected systems include the golang.org/x/net/html package. The known CNA vendor/product is golang.org/x/net:golang.org/x/net/html. No specific affected version range is provided in the data, but the references point to a recent issue (go.dev/issue/82622) that contains the patch, indicating that newer releases of the package contain the fix.

Risk and Exploitability

There is no EPSS score or KEV listing for this vulnerability, so its exploitation likelihood is unknown but potentially low to moderate. The flaw resides in a library that may be used to render untrusted input into HTML, so an attacker could potentially deliver malicious content if the library is used without proper sanitization. The risk depends on whether the affected code processes untrusted data, but the absence of a public exploit at this time suggests a moderate to low severity, whereas the potential for content injection warrants immediate attention.

Generated by OpenCVE AI on October 27, 2026 at 23:03 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade golang.org/x/net to the latest version that includes the fix for CVE‑2026‑97045
  • Validate or escape any output produced by the HTML parser before it is served to users, ensuring that namespace transitions are not abused
  • Audit any code paths that parse or render untrusted content using golang.org/x/net/html and apply stricter namespace validation or equivalent sanitization

Generated by OpenCVE AI on October 27, 2026 at 23:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 27 Oct 2026 23:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-79

Tue, 27 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
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.
Title Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-10-27T21:38:56.700Z

Reserved: 2026-09-23T23:05:04.988Z

Link: CVE-2026-97045

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T22:19:22.613

Modified: 2026-10-27T22:19:22.613

Link: CVE-2026-97045

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T23:15:07Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')