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 Chainguard
- CGA-2225-f4wq-x4xw
- CGA-222p-gpfj-44qp
- CGA-222v-p68g-f3cv
- CGA-223m-pj35-j8x9
- CGA-224g-g9pc-ww2x
- CGA-2254-p8p3-q634
- CGA-225h-5wpf-pwj9
- CGA-2262-3vwm-93mg
- CGA-2263-3c87-4vmm
- CGA-2274-g657-q4qv
- CGA-2284-hp8c-gr4v
- CGA-228c-6rc3-9456
- CGA-228h-3jm4-m8c3
- CGA-2296-jq45-229x
- CGA-229q-52f9-jv2f
- CGA-22cg-w9q5-v6f5
- CGA-22cj-p589-ph7p
- CGA-22g3-76c3-3fx2
- CGA-22h3-6m5r-m78v
- CGA-22hc-g8vp-gr3w
- CGA-22hh-jm25-5j44
- CGA-22hx-x2gw-h586
- CGA-22jh-62fj-x2g9
- CGA-22r4-8w9p-89xj
- CGA-22rv-6p62-256c
- CGA-22vf-272f-hv82
- CGA-22w3-h8xx-h4hr
- CGA-22xg-4r6g-9v48
- CGA-22xg-whxm-p85w
- CGA-22xx-rq8p-33vr
- CGA-234f-h786-jcr8
- CGA-234p-5hhf-rcp3
- CGA-2354-9p44-6622
- CGA-2358-pwf8-4j5c
- CGA-235c-v42h-r3fg
- CGA-238f-6vj4-fw4q
- CGA-238g-ccf8-mxq6
- CGA-238p-r89h-6frw
- CGA-23c2-q6rc-23mm
- CGA-23c4-9vc6-crfr
- CGA-23c8-cq4v-pfwm
- CGA-23c8-mq2w-x385
- CGA-23f4-4382-fv8q
- CGA-23m5-f4vf-9rfg
- CGA-23p2-3rgc-v9m5
- CGA-23p7-xm7v-365p
- CGA-23pg-g2qv-m4h4
- CGA-23qv-736j-q2cf
- CGA-23x2-mcgq-49f4
- CGA-23xv-qx9f-fcv7
- CGA-23xw-39f8-c2jp
- CGA-23xx-2p5g-hq56
- CGA-2429-5g8q-4h6v
- CGA-2473-jcmc-xp86
- CGA-249c-3fv7-fg3r
- CGA-249x-pqf8-2xm2
- CGA-24c4-w7xw-33x8
- CGA-24c7-mvgr-ph95
- CGA-24ch-4wxw-prxc
- CGA-24cp-r3xf-q3x5
- CGA-24f2-3cv7-c8wr
- CGA-24f9-p77r-6274
- CGA-24fh-q7pq-7h8q
- CGA-24fx-3r57-5p5p
- CGA-24g4-j92g-fwm9
- CGA-24g6-x8mf-6748
- CGA-24gh-3652-9hxc
- CGA-24gq-3hg6-6rfx
- CGA-24hg-2qp8-5c9g
- CGA-24jw-37fw-mcxh
- CGA-24mm-mqr5-rxpp
- CGA-24p4-8w67-8h7q
- CGA-24p9-r38v-7xh8
- CGA-24ph-222f-fx47
- CGA-24ph-h796-qw78
- CGA-24q4-p85g-3cvw
- CGA-24q7-2xr8-hrrj
- CGA-24qr-2g6m-4c9p
- CGA-24rx-2pqh-fqfq
- CGA-24vh-3gh4-wjhq
- CGA-24vv-qfr2-76cv
- CGA-24w2-9872-q7xq
- CGA-24w5-39xc-9r25
- CGA-24wq-pfxv-259p
- CGA-24xg-4ccw-26wq
- CGA-2528-97fc-r6j3
- CGA-252p-w2r7-ffq4
- CGA-252x-23pg-hcvg
- CGA-2534-j2mj-345g
- CGA-2544-4579-593p
- CGA-2545-pf9m-ffq4
- CGA-2557-fgh7-99qg
- CGA-256g-5p86-25cp
- CGA-2587-m8r6-4phc
- CGA-258q-gpgr-v4wc
- CGA-258x-g82h-qc63
- CGA-2597-8rxr-29gj
- CGA-25cj-2x98-jq5f
- CGA-25cp-x99m-24p8
- CGA-25g7-g9x2-8mjq
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-78661.