Skip to main content
MalwarePublished

rust-testing-utils (npm) · Malicious Code

Affects rust-testing-utilsSource GCVE Database

0

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

Data as of 23 Aug 2026, 13:50 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14374

What to do

Remove rust-testing-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
npmrust-testing-utilsAffected
  • =2.3.0
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 rust-testing-utils version 2.3.0 contains malicious code that impersonates the pino logger. It executes attacker-controlled code fetched from a remote URL by decoding a base64 string stored in a fabricated environment variable. This remote code is executed with full module-loading capabilities, allowing arbitrary code execution within the consumer's process. The malicious payload can change dynamically without requiring a package update, indicating an intentional supply-chain attack.

References

Community reviews

Loading reviews…