Skip to main content
MalwarePublished

mw-test-utils (npm) · Malicious Code

Affects mw-test-utilsSource GCVE Database

0

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

Data as of 29 Oct 2026, 18:22 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-18371

What to do

Remove mw-test-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
npmmw-test-utilsAffected
  • =1.0.0
  • =10.0.0
  • =10.0.1
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 mw-test-utils (versions 1.0.0, 10.0.0, and 10.0.1) contains malicious preinstall and postinstall scripts that send the installing user's environment username, hostname, and working directory via unencrypted HTTP requests to a hardcoded IP address. The package contains no functional code and is labeled as a dependency-confusion proof of concept, but the scripts execute automatically on every install, potentially leaking sensitive environment information.

References

Community reviews

Loading reviews…