routing-controls (npm) · Malicious Code
Affects routing-controlsSource GCVE Database
Malicious package : remove routing-controls and rotate any secrets on hosts that installed it.
Data as of 9 Jul 2026, 09:53 UTC
Malicious package
Published to npm · OSV MAL-2026-5635
What to do
Remove routing-controls 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 |
|---|---|---|
| npmrouting-controls | 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 'routing-controls' version 1.0.1 is a malicious clone of the popular 'routing-controllers' package. It contains a code path that reloads a stub file named 'lib.min.js' on every POST request, which currently only logs a message but structurally allows future versions to execute arbitrary code on POST requests. There is no evidence of active exploitation or credential theft in the current version, but the package poses a latent risk if updated maliciously. Removal is recommended due to the potential for full system compromise.