flatbush is vulnerable to Denial of Service (DoS)
54
Medium Risk
The internal sort() in index.js used recursive quicksort to build the spatial index. On degenerate input (e.g. large sets of duplicate coordinates), partition imbalance can cause recursion depth to grow linearly, hitting the engine's stack limit and throwing a "max recursion depth" (or similar) error and crashing the process. An attacker who can supply or influence the data passed to index.add() and then trigger index.finish() can cause denial of service. The fix replaces the recursive implementation with an iterative quicksort that uses an explicit stack, bounding stack depth and preventing overflow.
You are affected if you are using a version that falls within the vulnerable range.
flatbush is vulnerable to Denial of Service (DoS) in versions 1.0.0 - 4.5.0.
Upgrade the flatbush library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant