2nestjs (npm) · Malicious Code
Affects 2nestjsSource GCVE Database
Malicious package : remove 2nestjs and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 17:28 UTC
Malicious package
Published to npm · OSV MAL-2026-15911
What to do
Remove 2nestjs 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
| Product | Affected | Fixed in |
|---|---|---|
| npm2nestjs | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The 2nestjs npm package is a malicious typosquatting package impersonating the popular nestjs package. Its postinstall script exfiltrates environment variables containing secrets to a remote server and establishes a reverse shell, allowing arbitrary command execution on the installer's machine.