PT-2026-22841
CVE-2026-27601
·
Published
2026-02-18
·
Updated
2026-10-06
Description by
CVSS 4.0
8.2
HighMetricsAV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions
Underscore.js versions prior to 1.13.8
Description
The
.flatten and .isEqual functions use recursion without a depth limit, which can lead to a stack overflow and a Denial of Service (DoS). This occurs when untrusted input is used to create a recursive data structure (for example, via JSON.parse) without an enforced depth limit, and this structure is then passed to the affected functions. For .flatten, the issue is exploitable if the data structure consists of arrays at all levels and no finite depth limit is provided as the second argument. For .isEqual, the issue is exploitable if two distinct data structures submitted by the same remote client are compared. Stack overflow exceptions resulting from these calls are not caught, potentially causing the application to crash.Recommendations
Update Underscore.js to version 1.13.8 or later.
Enforce a depth limit (e.g., 100 to 1000 levels) on data structures created from untrusted input.
As a temporary workaround for
.flatten, pass a second argument that limits the flattening depth to 1000 or less.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾