CVE-2026-119051

flat through 6.0.1 Denial of Service via unflatten() Numeric Array Index Keys

Published Oct 29, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

flat, a Node.js utility for flattening and unflattening objects, contains an uncontrolled resource allocation flaw in its unflatten() function. The vulnerability allows an attacker to supply flattened keys with large numeric indices, such as a.4294967294, that create extremely sparse arrays. Operations that iterate over these arrays, including forEach, spread operators, or JSON.stringify, consume disproportionate CPU and memory, blocking the Node.js event loop and rendering the application unresponsive.

Affected Systems

The flaw affects versions of the flat library up to and including 6.0.1. Any Node.js application that imports or requires flat, directly or indirectly, and processes untrusted input through unflatten() is at risk. The affected product is the hughsk:flat library. Version 6.0.1 and earlier are impacted.

Risk and Exploitability

The CVSS score of 8.2 indicates high severity, and the absence of an EPSS score suggests no publicly observed exploitation data yet, but the attack vector is clear: supplying crafted input to unflatten() can create the sparse array and trigger the denial of service. The vulnerability is not listed in the CISA KEV catalog, but the limited resource consumption could be leveraged in a targeted denial‑of‑service attack. An attacker does not need additional privileges and merely has to provide malicious keys to the affected library function within the application context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the flat package to the latest available release that contains the unflatten() fix.
  • Validate or sanitize input to reject or constrain numeric array index keys that exceed a safe threshold before calling unflatten().
  • Implement application‑level safeguards such as execution timeouts or process isolation to prevent a single blocking array operation from affecting the entire Node.js event loop.

Generated by OpenCVE AI on October 29, 2026 at 15:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title flat through 6.0.1 Denial of Service via unflatten() Numeric Array Index Keys
First Time appeared Flat Project
Flat Project flat
Weaknesses CWE-770
CPEs cpe:2.3:a:flat_project:flat:*:*:*:*:*:*:*:*
Vendors & Products Flat Project
Flat Project flat
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 3:30 PM
Reserved
Oct 29, 2026, 11:51 AM
Status
Deferred
Published
Oct 29, 2026, 2:17 PM
Modified
Nov 3, 2026, 4:17 PM
Severity
Moderate
Public date
Oct 29, 2026, 1:08 PM