Go
CVE-2026-97045
Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
- Severity
- Medium 6.1
- Published
- 27 Oct 2026
- Last changed
- 4 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.62.0
- Exploit chance
- 0.3% in the next 30 daysHigher than 25% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Cross-site scripting (CWE-79)
- Attack
- Over the network · No login needed · Needs someone to click or open something
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Sources
- CVE Program
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 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.
Affected software
| Software | Affected versions |
|---|---|
golang.org/x/net/htmlGo · osv:Go:golang.org/x/net/html |
|
About golang.org/x/net/html
Vulnerabilities in golang.org/x/net/html
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/netHigh 7.5 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-97045