ADVISORIES

GitHub Advisory Database

GHSA-vpq2-c234-7xj6

@tootallnate/once vulnerable to Incorrect Control Flow Scoping

Details

Versions of the package @tootallnate/once before 3.0.1 are vulnerable to Incorrect Control Flow Scoping in promise resolving when AbortSignal option is used. The Promise remains in a permanently pending state after the signal is aborted, causing any await or .then() usage to hang indefinitely. This can cause a control-flow leak that can lead to stalled requests, blocked workers, or degraded application availability.

Affected packages

EcosystemPackageAffected versions
npm@tootallnate/once
From 3.0.0 before 3.0.1 (fixed in 3.0.1)
npm@tootallnate/once
All versions before 2.0.1 (fixed in 2.0.1)

References