0nestjs (npm) · Malicious Code
Affects 0nestjsSource GCVE Database
Malicious package : remove 0nestjs and rotate any secrets on hosts that installed it.
Data as of 7 Sep 2026, 17:29 UTC
Malicious package
Published to npm · OSV MAL-2026-15908
What to do
Remove 0nestjs 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 |
|---|---|---|
| npm0nestjs | 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 npm package '0nestjs' version 0.0.1 is a malicious typosquatting package targeting developers who mistype 'nestjs'. Upon installation, it executes a postinstall script that harvests environment variables containing secrets and sends them to a remote attacker-controlled server. It also establishes a reverse shell connection to the attacker, allowing interactive command execution on the victim's machine.