CVE-2026-27601
Underscore.js: Underscore.js: Denial of Service via recursive data structures in flatten and isEqual functions
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 4, 2026
Updated · October 9, 2026
Description
A flaw was found in Underscore.js, a JavaScript utility library. This vulnerability allows a remote attacker to trigger a Denial of Service (DoS) attack by providing specially crafted recursive data structures. When these structures are processed by the _.flatten or _.isEqual functions, which lack a depth limit for recursion, a stack overflow occurs. This can make the application unavailable to legitimate users.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, applications utilizing Underscore.js should ensure that any processing of untrusted, recursively structured data with _.flatten or _.isEqual explicitly enforces a finite depth limit. Review application code to identify and modify calls to these functions, adding appropriate depth parameters to prevent stack overflow conditions. Additionally, input validation should be implemented to sanitize untrusted data before it is processed by Underscore.js functions.
CVSS / CWE
CVSS 3.1 · 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE-606 · Unchecked Input for Loop Condition