When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via…
Historical advisory recorded 4 Nov 2026 23:56:29 UTC. Read the latest advisory.
nvd · CVE-2026-78661
PublishedWhen 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2026-78661
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-407
Original publisher date fields
published: 2026-10-27T22:18:05.930
lastModified: 2026-11-04T17:17:37.673
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON