CVE-2026-119051 Details
Description
flat through 6.0.1 contains an uncontrolled resource allocation vulnerability in unflatten() that allows attackers to create huge sparse arrays via unbounded numeric keys. Attackers can supply flattened keys such as a.4294967294, causing iteration with forEach, spread or JSON.stringify to block the Node.js event loop.
A denial-of-service vulnerability has been identified in the 'flat' package, specifically in versions through 6.0.1. The issue arises from an uncontrolled resource allocation in the 'unflatten()' function, where attackers can create large sparse arrays using unbounded numeric keys. This manipulation causes the Node.js event loop to become blocked, disrupting normal application performance. The vulnerability is rooted in the 'getkey()' function, which improperly handles numeric keys by allowing excessively large values to be used as array indices, without any upper limit.
As a temporary workaround, 'unflatten()' can be called with the '{ object: true }' option to prevent the creation of arrays from numeric keys. However, this should be done with caution, as it may not be suitable for all use cases.
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.
Volerion
Assessed Oct 29, 2026CISA-ADP
Assessed Nov 3, 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.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/hughsk/flat/issues/195 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/hughsk/flat | [email protected] | ProductVendor |
| https://github.com/hughsk/flat/blob/1d68e1d06c0210cff31e5c61ac177f3e2d3fa564/index.js#L137-L142 | [email protected] | Source CodeVendor |
| https://github.com/hughsk/flat/blob/1d68e1d06c0210cff31e5c61ac177f3e2d3fa564/index.js#L65-L75 | [email protected] | Source CodeVendor |
| https://github.com/hughsk/flat/issues/195 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/flat-through-6.0.1-denial-of-service-via-unflatten-numeric-array-index-keys | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| flat | <= 6.0.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 3, 2026 | CVE Modified | CISA-ADP |
| Oct 29, 2026 | New CVE Received | [email protected] |
Volerion