Skip to main content

Malicious code in library-explorer (npm)

0
High
Published: 07/12/2026 (07/12/2026, 20:47:17 UTC)
Source: GCVE Database
Product: library-explorer

Description

The npm package 'library-explorer' version 25.2.1 contains malicious code that executes during installation. Its preinstall script collects detailed host system information and user identity data, then sends this data to a hardcoded external server. The package provides no legitimate functionality and appears to be designed for reconnaissance or data exfiltration during dependency installation.

Affected software

npmghsa
library-explorer
Affected versions
=25.2.1

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: 09/12/2026, 16:48:10 UTC

Technical Analysis

The 'library-explorer' npm package version 25.2.1 declares a preinstall script that runs 'index.js' upon installation. This script gathers extensive host identity information including OS details, user information, CPU and memory data, and executes system commands like 'whoami' and 'id'. The collected data is sent via HTTP POST to a hardcoded Burp Collaborator subdomain, indicating malicious intent consistent with a dependency-confusion or internal-name reconnaissance beacon. The package itself lacks legitimate functionality and is likely staged to automatically exfiltrate data during installation.

Potential Impact

Installation of this package results in unauthorized collection and exfiltration of sensitive host system and user identity information to an external attacker-controlled server. This compromises host confidentiality and could facilitate further targeted attacks or reconnaissance. There are no known exploits in the wild, but the high severity reflects the potential for sensitive data leakage.

Mitigation Recommendations

No official patch or remediation is documented. Users should avoid installing version 25.2.1 of 'library-explorer'. Verify package authenticity before installation and consider using package integrity verification tools. Monitor for and remove any installations of this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for current remediation guidance.

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-10205
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a54ae1068715ace438f8cf5

Added to database: 07/13/2026, 09:21:20 UTC

Last enriched: 09/12/2026, 16:48:10 UTC

Last updated: 09/12/2026, 16:48:10 UTC

Views: 46

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