๐Ÿ” CVE Alert

CVE-2026-78661

UNKNOWN 0.0

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

NVD โ†— CVE.org โ†— EPSS Data โ†—
go.dev: https://go.dev/cl/849365 go.dev: https://go.dev/issue/82224 groups.google.com: https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs pkg.go.dev: https://pkg.go.dev/vuln/GO-2026-6860

Credits

Markus Magnuson