Skip to main content
← All vulnerabilities
CVE-2026-97045GO-2026-6866EUVD-2026-111400GHSA-VWCJ-R8V9-P53F

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.62.0
None on Exploit-DB, Metasploit or GitHub

Summary

The golang.org/x/net Go library's HTML rendering code is affected. Under certain nested markup, the rendered output can be parsed differently when read back, which may lead to unintended HTML structure and content.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • golang.org/x/net/html

    fixed in 0.62.0

  • golang.org/x/netGo

    fixed in 0.62.0

References 4

go.dev

groups.google.com

pkg.go.dev