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.
Fix
Nothing published yet: no patch, vendor advisory or mitigation reference on NVD, no vendor advisory in the News for this CVE, not in CISA's KEV, no fixed package version. BaselineWatch does not guess at one.
Change history 4
- StatusPublished → DeferredNVD modified 2026-10-28 15:24
- StatusReceived → PublishedNVD modified 2026-10-27 21:38
- StatusPublished → ReceivedNVD modified 2026-10-27 22:18
- First seenunscored · golang.org/x/netNVD modified 2026-10-27 21:38
Affected (CPE criteria) 0
NVD has not attached CPE configurations yet.