@torbeck/priority-queue (npm) · Malicious Code
Affects @torbeck/priority-queueSource GCVE Database
Malicious package : remove @torbeck/priority-queue and rotate any secrets on hosts that installed it.
Data as of 14 Aug 2026, 19:52 UTC
Malicious package
Published to npm · OSV MAL-2026-10472
What to do
Remove @torbeck/priority-queue from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@torbeck/priority-queue | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @torbeck/priority-queue republishes the legitimate @datastructures-js/priority-queue package but uses npm aliasing to substitute a dependency with a malicious package @torbeck/heap. This substitution causes the malicious @torbeck/heap package to be loaded instead of the legitimate dependency, potentially compromising any system that installs @torbeck/priority-queue. The malicious payload resides in @torbeck/heap and can lead to full system compromise. Immediate removal and secret/key rotation are recommended if this package was installed.
References
- npmjs.com/package/@torbeck/priority-queue/v/6.3.9 (opens in a new tab)
- npmjs.com/package/@torbeck/priority-queue/v/6.3.7 (opens in a new tab)
- npmjs.com/package/@torbeck/priority-queue/v/6.3.6 (opens in a new tab)
- github.com/advisories/GHSA-v2rg-75ch-7cfx (opens in a new tab)
- npmjs.com/package/@torbeck/priority-queue/v/6.3.10 (opens in a new tab)
- npmjs.com/package/@torbeck/priority-queue/v/6.3.8 (opens in a new tab)
- npmjs.com/package/@torbeck/priority-queue/v/6.3.5 (opens in a new tab)