Skip to main content
MalwarePublished

nested-lib (npm) · Malicious Code

Affects nested-libSource GCVE Database

0

Malicious package : remove nested-lib and rotate any secrets on hosts that installed it.

Data as of 11 Oct 2026, 21:43 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-17773

What to do

Remove nested-lib from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmnested-libAffected
  • =1.0.0
  • =1.0.1
  • =1.1.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…