routecraft (npm) · Malicious Code
Affects routecraftSource GCVE Database
Malicious package : remove routecraft and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:55 UTC
Malicious package
Published to npm · OSV MAL-2026-6229
What to do
Remove routecraft 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 |
|---|---|---|
| npmroutecraft | 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 'routecraft' versions 4.2.0 and 5.0.0 is a malicious package that repackages Express.js source code without attribution and includes a malicious install script. On Windows systems with Node.js version 18 or higher, it conditionally loads a suspicious dependency 'procwire' which executes malicious payloads during installation. Systems with this package installed should be considered fully compromised, and all secrets and keys must be rotated. Removal of the package alone may not eliminate the compromise.