Malicious code in sort-btree (npm)
The npm package 'sort-btree' versions 2.1.6 and 2.2.0 contain malicious code. Analysis detected suspicious keywords related to child process execution and HTTP tokens in minified files, but no confirmed evidence of network exfiltration or attacker-controlled endpoints was found. Despite this, the package is considered fully compromising any system where it is installed or running. Immediate removal of the package and rotation of all secrets and keys from a separate, uncompromised system is advised.
AI Analysis
Technical Summary
The 'sort-btree' npm package versions 2.1.6 and 2.2.0 have been identified as malicious. Static analysis found patterns in minified JavaScript files that include references to child process spawning and HTTP-related tokens, which may indicate malicious behavior. However, no direct evidence of runtime execution of these capabilities, network communication, or command and control infrastructure was confirmed. The package masquerades as a B+ tree data structure library but is flagged as a malicious package that compromises the host system. Due to the potential for full system compromise, any system with this package installed should be treated as compromised.
Potential Impact
Any computer with the affected versions of 'sort-btree' installed or running is considered fully compromised. This implies that attackers may have gained full control over the system, potentially exposing all stored secrets and keys. Removal of the package alone does not guarantee elimination of all malicious software introduced by it.
Mitigation Recommendations
Remove the 'sort-btree' package versions 2.1.6 and 2.2.0 immediately from all affected systems. Rotate all secrets and keys stored on compromised machines from a separate, trusted system. Because full system compromise is possible, further forensic analysis and remediation may be necessary. No official patch or fix is currently available; therefore, avoidance of these versions is critical.
Malicious code in sort-btree (npm)
Description
The npm package 'sort-btree' versions 2.1.6 and 2.2.0 contain malicious code. Analysis detected suspicious keywords related to child process execution and HTTP tokens in minified files, but no confirmed evidence of network exfiltration or attacker-controlled endpoints was found. Despite this, the package is considered fully compromising any system where it is installed or running. Immediate removal of the package and rotation of all secrets and keys from a separate, uncompromised system is advised.
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 'sort-btree' npm package versions 2.1.6 and 2.2.0 have been identified as malicious. Static analysis found patterns in minified JavaScript files that include references to child process spawning and HTTP-related tokens, which may indicate malicious behavior. However, no direct evidence of runtime execution of these capabilities, network communication, or command and control infrastructure was confirmed. The package masquerades as a B+ tree data structure library but is flagged as a malicious package that compromises the host system. Due to the potential for full system compromise, any system with this package installed should be treated as compromised.
Potential Impact
Any computer with the affected versions of 'sort-btree' installed or running is considered fully compromised. This implies that attackers may have gained full control over the system, potentially exposing all stored secrets and keys. Removal of the package alone does not guarantee elimination of all malicious software introduced by it.
Mitigation Recommendations
Remove the 'sort-btree' package versions 2.1.6 and 2.2.0 immediately from all affected systems. Rotate all secrets and keys stored on compromised machines from a separate, trusted system. Because full system compromise is possible, further forensic analysis and remediation may be necessary. No official patch or fix is currently available; therefore, avoidance of these versions is critical.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6063
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-wwvg-mj5j-mqx8"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba9168715ace435822f6
Added to database: 07/10/2026, 09:25:37 UTC
Last enriched: 07/10/2026, 10:08:59 UTC
Last updated: 07/22/2026, 07:16:03 UTC
Views: 13
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.
External Links
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.