Malicious code in @torbeck/priority-queue (npm)
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.
AI Analysis
Technical Summary
The @torbeck/priority-queue npm package is a repackaged version of the legitimate @datastructures-js/priority-queue, but it abuses npm alias syntax in its package.json to replace the legitimate @datastructures-js/heap dependency with a malicious sibling package @torbeck/[email protected] published by the same untrusted maintainer. When @torbeck/priority-queue is imported, it loads the malicious @torbeck/heap package instead of the legitimate heap package, enabling potential full compromise of the host system. The malicious code is contained in @torbeck/heap and must be analyzed separately. Systems with this package installed should be considered fully compromised.
Potential Impact
Any computer with @torbeck/priority-queue installed is at risk of full compromise due to the malicious dependency substitution. Attackers may gain full control, potentially accessing all secrets and keys stored on the system. Removal of the package alone does not guarantee eradication of the compromise, necessitating secret and key rotation from a clean environment.
Mitigation Recommendations
Remove the @torbeck/priority-queue package immediately if installed. Rotate all secrets and keys stored on the affected system from a different, trusted computer. Because the malicious payload resides in the aliased @torbeck/heap package, ensure no remnants remain. Monitor for any suspicious activity and consider system reimaging if compromise is suspected. Patch status is not confirmed; check vendor advisories for updates on remediation.
Malicious code in @torbeck/priority-queue (npm)
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @torbeck/priority-queue npm package is a repackaged version of the legitimate @datastructures-js/priority-queue, but it abuses npm alias syntax in its package.json to replace the legitimate @datastructures-js/heap dependency with a malicious sibling package @torbeck/[email protected] published by the same untrusted maintainer. When @torbeck/priority-queue is imported, it loads the malicious @torbeck/heap package instead of the legitimate heap package, enabling potential full compromise of the host system. The malicious code is contained in @torbeck/heap and must be analyzed separately. Systems with this package installed should be considered fully compromised.
Potential Impact
Any computer with @torbeck/priority-queue installed is at risk of full compromise due to the malicious dependency substitution. Attackers may gain full control, potentially accessing all secrets and keys stored on the system. Removal of the package alone does not guarantee eradication of the compromise, necessitating secret and key rotation from a clean environment.
Mitigation Recommendations
Remove the @torbeck/priority-queue package immediately if installed. Rotate all secrets and keys stored on the affected system from a different, trusted computer. Because the malicious payload resides in the aliased @torbeck/heap package, ensure no remnants remain. Monitor for any suspicious activity and consider system reimaging if compromise is suspected. Patch status is not confirmed; check vendor advisories for updates on remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10472
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a55ffa268715ace432f734d
Added to database: 07/14/2026, 09:21:38 UTC
Last enriched: 08/14/2026, 19:52:35 UTC
Last updated: 09/13/2026, 11:06:49 UTC
Views: 56
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.