CVE-2026-78661

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.
Configurations

No configuration.

History

04 Nov 2026, 17:17

Type Values Removed Values Added
CWE CWE-407
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5

27 Oct 2026, 22:18

Type Values Removed Values Added
New CVE

Information

Published : 2026-10-27 22:18

Updated : 2026-11-04 17:17


NVD link : CVE-2026-78661

Mitre link : CVE-2026-78661

CVE.ORG link : CVE-2026-78661


JSON object : View

Products Affected

No product.

CWE
CWE-407

Inefficient Algorithmic Complexity