Skip to main content
MalwarePublished

service-roles-registry (npm) · Malicious Code

Affects service-roles-registrySource GCVE Database

0

Malicious package : remove service-roles-registry and rotate any secrets on hosts that installed it.

Data as of 3 Nov 2026, 07:43 UTC

Classification

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

ProductAffectedFixed in
npmservice-roles-registryAffected
  • =99.0.2
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.

References

Community reviews

Loading reviews…