Skip to main content

Malicious code in nested-lib (npm)

0
High
Published: 10/11/2026 (10/11/2026, 13:53:33 UTC)
Source: GCVE Database
Product: nested-lib

Description

The nested-lib npm package versions 1.0.0, 1.0.1, and 1.1.0 contain malicious code that sends system information to an unauthorized external server without user consent. The package executes a beacon script both during installation and when required, transmitting hostname, directory paths, and Node.js version over unencrypted HTTP to a hardcoded IP address. The package itself provides no real functionality, acting as a reconnaissance beacon likely used to confirm successful installation before further malicious activity.

Affected software

npmghsa
nested-lib
Affected versions
=1.0.0=1.0.1=1.1.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: 10/11/2026, 21:43:08 UTC

Technical Analysis

The nested-lib npm package versions 1.0.0, 1.0.1, and 1.1.0 include a postinstall script and runtime code that automatically send a JSON payload containing system identifiers (os.hostname(), __dirname, process.cwd(), process.version) to a hardcoded bare-IP HTTP endpoint (http://185.158.107.175:8787/_ah/dc). The package exports a Proxy object that returns no-op functions, providing no legitimate functionality. This behavior is consistent with a reconnaissance beacon used to validate installation in target environments, likely as a precursor to a second-stage payload. There is no indication of an official patch or remediation available.

Potential Impact

The malicious code leaks sensitive environment information to an unauthorized external server without user consent, potentially exposing system details that could aid attackers in further exploitation. The package does not provide legitimate functionality, indicating its sole purpose is reconnaissance. No known exploits in the wild have been reported. The data is sent over unencrypted HTTP, increasing the risk of interception.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid installing or using the affected nested-lib package versions 1.0.0, 1.0.1, and 1.1.0. Consider removing the package from existing environments and monitor for updates from trusted sources regarding remediation.

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

Threat ID: 6acc00a32cdf04f656fecb05

Added to database: 10/11/2026, 21:33:23 UTC

Last enriched: 10/11/2026, 21:43:08 UTC

Last updated: 10/11/2026, 21:43:08 UTC

Views: 2

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