Back to CVE records
Not yet scoredPublished Oct 27, 2026

CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net

Updated under an hour ago ()

Does this affect you?

It affects golang.org/x/net/html. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
Not yet scored
Weakness (CWE)
CWE-407
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Go
NVD analysis
Deferred
Record last updated
Oct 27, 2026
First seen by InfoSec Signals
Oct 27, 2026

Affected products

Affected products
golang.org/x/net golang.org/x/net/html
golang.org_x_net:html (from the name)
before 0.62.0
CNA record

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.