Vulnerability
CVE-2026-27601
Underscore.js is a utility-belt library for JavaScript. Prior to 1.13.8, the _.flatten and _.isEqual functions use recursion without a depth limit. Under very specific conditions, detailed below, an attacker could exploit this in a Denial of Service (DoS) attack by triggering a stack overflow. Untrusted input must be used to create a recursive datastructure, for example using JSON.parse, with no enforced depth limit. The datastructure thus created must be passed to _.flatten or _.isEqual. In the case of _.flatten, the vulnerability can only be exploited if it is possible for a remote client to prepare a datastructure that consists of arrays at all levels AND if no finite depth limit is passed as the second argument to _.flatten. In the case of _.isEqual, the vulnerability can only be exploited if there exists a code path in which two distinct datastructures that were submitted by the same remote client are compared using _.isEqual. For example, if a client submits data that are stored in a database, and the same client can later submit another datastructure that is then compared to the data that were saved in the database previously, OR if a client submits a single request, but its data are parsed twice, creating two non-identical but equivalent datastructures that are then compared. Exceptions originating from the call to _.flatten or _.isEqual, as a result of a stack overflow, are not being caught. This vulnerability is fixed in 1.13.8.
69 advisories report this vulnerability, across 10 ecosystems.
Advisories in Chainguard
- CGA-22r3-8x7c-gf93
- CGA-2qfg-pw88-3835
- CGA-4m27-pmgm-j6g5
- CGA-4m7c-v6p8-f6c2
- CGA-4prr-h75r-gg3p
- CGA-66xc-c4cm-mq7j
- CGA-6vhj-4xg5-72fx
- CGA-78r6-3v2r-p3rj
- CGA-7px9-pq5v-vvq9
- CGA-7x48-67hv-c5vx
- CGA-89fw-mp7m-24gh
- CGA-9mfg-gmwr-3wjv
- CGA-c56v-5f22-w66r
- CGA-c85q-cvhx-5gq2
- CGA-cp9p-mhgc-w8cp
- CGA-f69p-99h5-jjrq
- CGA-ff7m-9r9r-f78m
- CGA-fmh7-ppgq-464r
- CGA-hmrp-xrp5-prq4
- CGA-hqjx-hg7g-52g9
- CGA-hwr5-qmph-2wgp
- CGA-j2f8-cg35-2pgf
- CGA-j38w-739x-3jqw
- CGA-jj9q-9r87-q294
- CGA-m849-69m2-vg5q
- CGA-pv58-gjxg-gqw8
- CGA-pxx4-6v62-mj4x
- CGA-qhrc-7rjx-pw7w
- CGA-qjqw-2whc-4m2c
- CGA-qx7q-hq5c-hx36
- CGA-r4mh-hp5w-r7jx
- CGA-r6jm-q89m-pfvf
- CGA-r84w-5m78-xp9j
- CGA-rg6x-xcpv-jg35
- CGA-rjx3-28j2-jxr6
- CGA-vpww-qw7g-wfwh
- CGA-vq34-3rgp-7m98
- CGA-vv29-m3pf-9wx9
- CGA-w828-gjmc-9h6m
- CGA-wrm6-gm3v-x8f5
- CGA-x2w8-6222-cqm4
- CGA-x6vw-98q7-fqpm
- CGA-xfp7-p727-729v
- CGA-xq7p-2pgg-r6rv