CVE-2026-78661

Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net

CVE-2026-78661 is fixed in golang-golang-x-net on 1 platform by DEBIAN-CVE-2026-78661 (version 1:0.62.0-1), released November 3, 2026. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.5
Moderate
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0041
35th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
golang-golang-x-net · Debian 14 1:0.62.0-1 DEBIAN-CVE-2026-78661 Nov 3, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.