Intel

AIKIDO-2026-10392

flatbush is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 18, 2026

54

Medium Risk

This Affects:

JSflatbush
1.0.0 - 4.5.0
Fixed in 4.5.1
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

flatbush is vulnerable to Denial of Service (DoS) in versions 1.0.0 - 4.5.0.

How to fix this

Upgrade the flatbush library to the patch version.