Vulnerability
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.
10847 advisories report this vulnerability, across 10 ecosystems.
Advisories in Amazon Linux
-
ALAS2-2026-4101
Amazon Linux 2 2017.12 - ALAS2-2026-4101: medium priority package update for amazon-ssm-agent
-
ALAS2-2026-4127
Amazon Linux 2 2017.12 - ALAS2-2026-4127: important priority package update for nerdctl
-
ALAS2023-2026-3391
Amazon Linux 2023 - ALAS2023-2026-3391: Important priority package update for docker
-
ALAS2023-2026-3428
Amazon Linux 2023 - ALAS2023-2026-3428: Medium priority package update for amazon-ssm-agent
-
ALAS2023-2026-3450
Amazon Linux 2023 - ALAS2023-2026-3450: Important priority package update for skopeo
-
ALAS2023-2026-3451
Amazon Linux 2023 - ALAS2023-2026-3451: Important priority package update for buildah
-
ALAS2023-2026-3461
Amazon Linux 2023 - ALAS2023-2026-3461: Medium priority package update for ecs-init
-
ALAS2023-2026-3465
Amazon Linux 2023 - ALAS2023-2026-3465: Important priority package update for soci-snapshotter
-
ALAS2023-2026-3468
Amazon Linux 2023 - ALAS2023-2026-3468: Important priority package update for nerdctl
-
ALAS2023-2026-3469
Amazon Linux 2023 - ALAS2023-2026-3469: Important priority package update for containerd