PoC Monitor
← All CVEs
CVE-2026-78661published 27 Oct 2026 21:38 UTCData: JSON · API

golang.org/x/net golang.org/x/net/html

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

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CISA ADP · CWE-407
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

golang.org/x/net golang.org/x/net/html
  • < 0.62.0

Fixed in 0.62.0

Mitigation

Upgrade golang.org/x/net/html to 0.62.0 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published27 Oct 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.