Malicious code in btree-lru-cache (npm)
Description
The npm package 'btree-lru-cache' version 2.1.0 contains malicious code or depends on a package with malicious code. Any system with this package installed should be considered fully compromised. Secrets and keys stored on such systems must be rotated immediately from a different, trusted machine. Removing the package alone may not fully eliminate the malicious presence, as the attacker may have established persistent control.
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 'btree-lru-cache' npm package version 2.1.0 was found to include malicious code or rely on a dependency that contains malicious code. This compromises any computer running or having installed this package, potentially granting full control to an attacker. The advisory recommends immediate rotation of all secrets and keys from a separate, secure environment and removal of the package, although removal does not guarantee complete remediation due to possible persistent compromise.
Potential Impact
Systems with 'btree-lru-cache' version 2.1.0 installed are considered fully compromised, implying that attackers may have full control over the affected machines. This includes potential exposure of all stored secrets and keys, which must be rotated immediately. The presence of malicious code means that attackers could perform unauthorized actions, data theft, or further malware deployment.
Mitigation Recommendations
Remove the 'btree-lru-cache' package version 2.1.0 from affected systems. Immediately rotate all secrets and keys from a different, secure computer to prevent further unauthorized access. Because the system may be fully compromised, consider rebuilding or thoroughly cleaning the affected machines to ensure complete removal of malicious components.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15875
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-p5xg-f96c-j538"]
- Ecosystems
- ["npm"]
Threat ID: 6a9ad4e9acd9273b49b676d2
Added to database: 09/04/2026, 14:25:45 UTC
Last enriched: 09/07/2026, 17:54:50 UTC
Last updated: 10/04/2026, 04:36:57 UTC
Views: 23
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.