CVE-2026-27601 Details
Description
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.
A denial-of-service vulnerability has been identified in Underscore.js versions prior to 1.13.8. The issue arises in the _.flatten and _.isEqual functions, which use recursion without a depth limit. This flaw can be exploited under specific conditions to trigger a stack overflow, causing the application to crash. The vulnerability requires untrusted input to create a recursive data structure, such as through JSON parsing, which is then passed to the vulnerable functions. In the case of _.flatten, the exploitation is possible only if the data structure consists of arrays at all levels and no depth limit is set. For _.isEqual, the vulnerability can be exploited by comparing two equivalent but distinct data structures from the same source, such as data stored in a database.
Users can upgrade to Underscore.js version 1.13.8 or later, where this vulnerability has been patched. For those unable to upgrade, a workaround is to enforce a depth limit on data structures created from untrusted input, or to limit the depth of flattening when using _.flatten.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| underscorejs underscore | < 1.13.8 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 28, 2026 | Reanalysis | [email protected] |
| Mar 5, 2026 | Initial Analysis | [email protected] |
| Mar 3, 2026 | New CVE Received | [email protected] |