flat through 6.0.1 contains an uncontrolled resource allocation vulnerability in unflatten() that allows attackers to
Source GCVE Database
Not known to be exploited · CVSS 8.2 High.
Data as of 29 Oct 2026, 16:52 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.2 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 5.9 |
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| hughskflat | Affected
| Fixed in– |
npmflatpkg:npm/flatOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, avoid processing untrusted input with the unflatten() function or implement input validation to restrict numeric keys to safe ranges to prevent resource exhaustion.
Description
The flat library up to version 6.0.1 has an uncontrolled resource allocation vulnerability in its unflatten() function. This flaw allows attackers to create very large sparse arrays by using unbounded numeric keys, such as a key like a.4294967294. When these arrays are processed with methods like forEach, spread, or JSON.stringify, they can block the Node.js event loop, causing denial of service.
References
- nvd.nist.gov/vuln/detail/CVE-2026-119051 (opens in a new tab)
- github.com/hughsk/flat/issues/195 (opens in a new tab)
- github.com/hughsk/flat (opens in a new tab)
- github.com/hughsk/flat/blob/1d68e1d06c0210cff31e5c61ac177f3e2d3fa564/index.js (opens in a new tab)
- github.com/hughsk/flat/blob/1d68e1d06c0210cff31e5c61ac177f3e2d3fa564/index.js (opens in a new tab)
- vulncheck.com/advisories/flat-through-6.0.1-denial-of-service-via-unflatten-numeric-array-index-keys (opens in a new tab)