Skip to main content
MalwarePublished Updated

webservices.rest-utils (npm) · Malicious Code

Affects webservices.rest-utilsSource GCVE Database

0

Malicious package : remove webservices.rest-utils and rotate any secrets on hosts that installed it.

Data as of 25 Nov 2026, 11:31 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-4336

What to do

Remove webservices.rest-utils 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
npmwebservices.rest-utilsAffected
  • =1.0.7
  • =1.0.8
  • =1.0.5
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 webservices.rest-utils versions 1.0.5, 1.0.7, and 1.0.8 contains malicious code that exfiltrates sensitive data from infected systems. It uses preinstall and postinstall hooks to run a script that collects environment variables, configuration files, and cloud metadata tokens, sending them to a Cloudflare Worker endpoint. The package also hijacks common development tool commands to repeatedly trigger data exfiltration while masking its activity.

References

Community reviews

Loading reviews…