flat is a Take a nested Javascript object and flatten it, or unflatten an object with delimited keys
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via unflatten(), which creates huge sparse arrays when processing flattened objects whose keys contain unbounded numeric indices. An attacker can supply keys such as a.4294967294, causing the resulting sparse array to consume excessive memory, and subsequent iteration with forEach, spread, or JSON.stringify to block the Node.js event loop.