CVE-2026-78661
Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th
When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as "a</x>") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.
| Vendor | golang.org/x/net |
| Product | golang.org/x/net/html |
| Published | Oct 27, 2026 |
Stay Ahead of the Next One
Get instant alerts for golang.org/x/net golang.org/x/net/html
Be the first to know when new unknown vulnerabilities affecting golang.org/x/net golang.org/x/net/html are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
golang.org/x/net / golang.org/x/net/html
0 < 0.62.0
References
Credits
Markus Magnuson