nodemon-copack (npm) · Malicious Code
Affects nodemon-copackSource GCVE Database
Malicious package : remove nodemon-copack and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 10:09 UTC
Malicious package
Published to npm · OSV MAL-2026-5308
What to do
Remove nodemon-copack 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 |
|---|---|---|
| npmnodemon-copack | 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 'nodemon-copack' impersonates the legitimate 'nodemon' project by copying its source code and metadata, including homepage, author, and repository fields. It introduces two runtime dependencies, 'regex-js' and 'chai', which are not used in the package code but are pulled into the installer's dependency graph. This pattern suggests dependency smuggling, where the actual malicious payload may reside in these transitive dependencies. Although the package itself does not contain direct malicious actions such as exfiltration or remote code execution, the presence of these smuggled dependencies poses a risk. The package versions 3.1.15 and 3.1.16 are affected. The package should be considered malicious, and any system with it installed should be treated as compromised.