Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in sort-btree (npm)

0
Critical
Published: 06/17/2026 (06/17/2026, 12:57:21 UTC)
Source: GCVE Database
Product: sort-btree

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

npmghsa
sort-btree
Affected versions
=2.1.6=2.2.0

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

AILast updated: 07/10/2026, 10:08:59 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses