Vulnerabilities

1 via 1 paths

Dependencies

37

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: flat
  • Introduced through: locter@4.3.0

Detailed paths

  • Introduced through: typeorm-extension@tada5hi/typeorm-extension › locter@4.3.0 › flat@6.0.1

Overview

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.

Remediation

There is no fixed version for flat.

References