service-roles-registry (npm) · Malicious Code
Affects service-roles-registrySource GCVE Database
Malicious package : remove service-roles-registry and rotate any secrets on hosts that installed it.
Data as of 3 Nov 2026, 07:43 UTC
Malicious package
Published to npm · OSV MAL-2026-18519
What to do
Remove service-roles-registry 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 |
|---|---|---|
| npmservice-roles-registry | 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 service-roles-registry version 99.0.2 contains malicious code that executes a preinstall script. This script collects host identifiers such as hostname, user info, current working directory, and package metadata, then sends this data to a hardcoded external endpoint without user consent. The package appears to be a dependency confusion lure designed to override an internal package of the same name.